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 API Support » XMS - Keeping request/reply together?

Post new topic  Reply to topic
 XMS - Keeping request/reply together? « View previous topic :: View next topic » 
Author Message
magr01
PostPosted: Thu May 24, 2012 12:38 am    Post subject: XMS - Keeping request/reply together? Reply with quote

Newbie

Joined: 15 Nov 2011
Posts: 6

Hello,

I am having problems correlating the request with the reply. Basically, the source I have right now just picks up the first available reply on the queue, eventhough it might not "belong" to the request just sent.
The correlationID in the reply will be the messageID from the request.

In my source, I have written the following:

producer.send(textMsg);
string msgID;
msgID = (textMsg.getJMSMessageID()).c_str();
xms::Message * receivedMsg = NULL;
xms::String receivedTextMsg;
receivedMsg = consumer.receive(wTime);

But how do I check the correlationID on the reply? If I have understood correctly, the "consumer.receive(wTime);" line will pick up the message from the queue regardless of correlationID and I haven't found a procedure where I can specify to only pick up messages with specific correlationID.

Any help in solving this would be highly appreciated.

BR

Martin
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu May 24, 2012 2:14 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=%2Fcom.ibm.mq.xms.doc%2Fconcepts%2Fxms_crequest.html

http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=%2Fcom.ibm.mq.xms.doc%2Fref%2Fxms_rmes_sel.html
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 API Support » XMS - Keeping request/reply together?
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.