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 » General IBM MQ Support » Correlation ID question

Post new topic  Reply to topic
 Correlation ID question « View previous topic :: View next topic » 
Author Message
syangloo
PostPosted: Sun Jan 12, 2003 8:10 pm    Post subject: Correlation ID question Reply with quote

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
View user's profile Send private message Yahoo Messenger MSN Messenger
PeterPotkay
PostPosted: Mon Jan 13, 2003 6:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
syangloo
PostPosted: Tue Jan 14, 2003 4:24 pm    Post subject: Reply with quote

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

MQSeries.net Forum Index » General IBM MQ Support » Correlation ID question
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.