Posted: Fri Jun 15, 2007 7:34 am Post subject: Corelating Req and res message
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
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
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.
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
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