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 » JMS Correlation ID problem

Post new topic  Reply to topic
 JMS Correlation ID problem « View previous topic :: View next topic » 
Author Message
varmamvn
PostPosted: Sun Mar 17, 2002 7:44 pm    Post subject: Reply with quote

Novice

Joined: 16 Mar 2002
Posts: 21

Hi all,

I'm having a problem with Correlation ID when using JMS. Basically, I have my JMS application which sends a request message to the host. The host application puts back the response setting the Correlation ID to be the same as my JMS application's Message ID. Now, all works fine when I use Java MQ Base programming and set the MQC.MQMO_MATCH_CORREL_ID.

When I use JMS, I'm using the following filter to acheive the same:
qrcvr=rcvrqsession.createReceiver(rcvqueue, "JMSCorrelationID = '"+id+"'") // where id is the messageID of the message that I sent
But, I do not get back any messages with the Correlation ID set. I have browsed the messages that I get using amqsbcg , and I have observed that the response messages that I get back when I use JMS always have the following Correlation ID, irrespective of the message ID that I send.
CorrelId : X'000000000000000000000000000000000000000000000000'

Please note that the host application has not changed in any way, it is the same application which responds fine for MQ Base Java requests, but fails to return the Correlation ID for JMS requests. Is there something I'm missing.

Please help
Warm regards
Varma




Back to top
View user's profile Send private message Send e-mail
babas1
PostPosted: Mon Mar 18, 2002 4:32 am    Post subject: Reply with quote

Newbie

Joined: 26 Feb 2002
Posts: 3

Try to translate expected correl id in the selector.
For my part when i am expecting Correl Id : "12", i use the selector :
"ID:313200000000000000000000000000000000000000000000".
And it works.
Note : 31 is the translation in hexa ascii of 1, 32 of 2, etc... Do not forget to appends leading 0.
Back to top
View user's profile Send private message
varmamvn
PostPosted: Mon Mar 18, 2002 5:55 pm    Post subject: Reply with quote

Novice

Joined: 16 Mar 2002
Posts: 21

Thanks babas1 for the info,
But I'm afraid that does not solve my problem. The problem is that I get back the same meaningless Correlation ID everytime from the host application.

I have also observed the following difference when I browse using amqsbcg:
Response for JMS request has
Encoding : 273 CodedCharSetId : 819
Response for MQ Base Java request has
Encoding : 785 CodedCharSetId : 500

Could this be the cause of my problem. How can I correct this?
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » JMS Correlation ID problem
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.