|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Yet another corrID query |
« View previous topic :: View next topic » |
Author |
Message
|
Sreenivas SL |
Posted: Tue Jan 29, 2002 12:50 am Post subject: |
|
|
Newbie
Joined: 09 Jan 2002 Posts: 5
|
Guys,
I'm putting a message on a MQJMS queue with the foll. JMSCorrelationID-
DLLU300264342345345.
Checking the JMSCorrelationID for the response on the MQJMS reply queue I find it looks like this-
ID:444c4c553330303236343334323334353334350000000000.
Does this make sense?If MQ is converting text to hex for internal reasons what do I need to do to get it to convert it back,so that JMS API see what they expect?
Any ideas?
Thanks in advance,
Sreeni.
|
|
Back to top |
|
 |
kolban |
Posted: Tue Jan 29, 2002 8:51 am Post subject: |
|
|
 Grand Master
Joined: 22 May 2001 Posts: 1072 Location: Fort Worth, TX, USA
|
Can you explain how (which methods) you are using to retrieve the COrrelation ID in your JMS app? |
|
Back to top |
|
 |
Sreenivas SL |
Posted: Tue Jan 29, 2002 3:09 pm Post subject: |
|
|
Newbie
Joined: 09 Jan 2002 Posts: 5
|
Hi,
The method I hope to use is the foll.-
String correlationId = "DLLU300264342345345";
//Create receiver with above corrid as selector
QueueReceiver queueReceiver = currentQueueSession.createReceiver(replyToQueueName, "JMSCorrelationID = '" + correlationId + "'");
But this attempt to select messages based on the expected corrid fails because the actual corrid on the queue is in hex.
In order to take a look at the actual corrid I use the foll. methods-
//Create receiver
QueueReceiver queueReceiver = currentQueueSession.createReceiver(replyToQueueName);
//receive message
Message message = queueReceiver.receive(timeOut);
//getJMSCorrelationId
String correlationId = message.getJMSCorrelationID();
So here's where I discover the hex corrid.
Thanks for the interest,
Sreeni.
|
|
Back to top |
|
 |
kolban |
Posted: Wed Jan 30, 2002 11:39 am Post subject: |
|
|
 Grand Master
Joined: 22 May 2001 Posts: 1072 Location: Fort Worth, TX, USA
|
See page 28 (Section 3.4.5) of the V1.02 JMS Spec. I think this will answer a lot of questions. Can you also clarify:
1. Who is originating the message? What is it setting the JMSCorrelationID to?
2. Who is retrieving the request message? What is it doing with the correlation ID? How is the reply being formed?
|
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|