|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Correlation ID question |
« View previous topic :: View next topic » |
Author |
Message
|
syangloo |
Posted: Sun Jan 12, 2003 8:10 pm Post subject: Correlation ID question |
|
|
Centurion
Joined: 01 Oct 2002 Posts: 120 Location: Kuala Lumpur
|
Dear All,
Application:
MQSeries v5.2
AMI 1.2
MQSI v2.1
OS: W2K for client and server.
Appl:
Cleint (with AMI) - C++
Server - Java (not using AMI)
I have one message flow for request reply message, it working fine for more of the time. Clients program can pick up the reply message with the correlation id match with the request message id accordingly. But sometime the client program can’t pick up the reply message, because of the correlation id no match the message id. I try few transactions; the client program looking like sending the same message id and server program reply the same correlation id (but different with the message id).
It working fine back after I stop starts the client side queue manager. What wrong with the queue manager? Any one can explain this issue for me?
How can I avoid this issue in the future?
Thanks in advance.
Regards
Syang |
|
Back to top |
|
 |
PeterPotkay |
Posted: Mon Jan 13, 2003 6:46 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Make sure that each time your app goes to do an MQGET matching on CorrelID, that it also initializes the Message ID to null. If your app goes to do a GET for CorrelID "123" but still has "123" in the MessageID leftover from the PUT, then it will be looking for a message with "123" in BOTH the message ID AND the CorrelID, and of course will not find any such message. Don't know why it is sporadicly not working. Double check / post your code.
Restarting the queue manager has nothing to do with this. When you stopped the QM you probably also restarted the apps that were connected to it. that probably "fixed" the problem by reinitializing the apps. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
syangloo |
Posted: Tue Jan 14, 2003 4:24 pm Post subject: |
|
|
Centurion
Joined: 01 Oct 2002 Posts: 120 Location: Kuala Lumpur
|
Dear Peter,
Thanks for you advice, i'll check for it. You mean other then MQ Series creaete the message id for each message, we better initial the message id to null.
If we not saving the message id at the application level and all control by the AMI setting.
May late reply to you about this issue, due to project timeline.
Regards
Syang |
|
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
|
|
|
|