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 » Corelating Req and res message

Post new topic  Reply to topic
 Corelating Req and res message « View previous topic :: View next topic » 
Author Message
xgr3
PostPosted: Fri Jun 15, 2007 7:34 am    Post subject: Corelating Req and res message Reply with quote

Newbie

Joined: 27 Jul 2005
Posts: 9

I am writing a JMS program using two queue Req and Res. Can someone share me the code for correlating the request message with the response message using the correlation id. I am anticipating 25 concurrent process. This would be java multithreading prog and I do not want to mess request message with the response message

Thanks
Back to top
View user's profile Send private message
tleichen
PostPosted: Fri Jun 15, 2007 7:39 am    Post subject: Reply with quote

Yatiri

Joined: 11 Apr 2005
Posts: 663
Location: Center of the USA

There are sections of the Programming Guide that tell you how to do this.
_________________
IBM Certified MQSeries Specialist
IBM Certified MQSeries Developer
Back to top
View user's profile Send private message
marcin.kasinski
PostPosted: Fri Jun 15, 2007 1:42 pm    Post subject: Re: Corelating Req and res message Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzal.doc/csq3j07.htm

Quote:

You can use the correlation identifier in any way that you like. However, an intended use of this field is for applications to copy the message identifier of a request message into the CorrelId field of a reply message.

_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
fjb_saper
PostPosted: Fri Jun 15, 2007 1:55 pm    Post subject: Re: Corelating Req and res message Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

marcin.kasinski wrote:
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzal.doc/csq3j07.htm

Quote:

You can use the correlation identifier in any way that you like. However, an intended use of this field is for applications to copy the message identifier of a request message into the CorrelId field of a reply message.


And remember, if you want performance your selector had better reference the correlId in its provider form: 'Id:xxxxxxxxxxxxxxxx' where xx is a hex representation of a byte value.
_________________
MQ & Broker admin
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 » Corelating Req and res message
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.