ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Yet another corrID query

Post new topic  Reply to topic
 Yet another corrID query « View previous topic :: View next topic » 
Author Message
Sreenivas SL
PostPosted: Tue Jan 29, 2002 12:50 am    Post subject: Reply with quote

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
View user's profile Send private message
kolban
PostPosted: Tue Jan 29, 2002 8:51 am    Post subject: Reply with quote

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
View user's profile Send private message
Sreenivas SL
PostPosted: Tue Jan 29, 2002 3:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
kolban
PostPosted: Wed Jan 30, 2002 11:39 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Yet another corrID query
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.