|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
JMS Correlation ID problem |
« View previous topic :: View next topic » |
Author |
Message
|
varmamvn |
Posted: Sun Mar 17, 2002 7:44 pm Post subject: |
|
|
 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 |
|
 |
babas1 |
Posted: Mon Mar 18, 2002 4:32 am Post subject: |
|
|
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 |
|
 |
varmamvn |
Posted: Mon Mar 18, 2002 5:55 pm Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
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
|
|
|
|