Posted: Mon Jul 07, 2003 5:23 pm Post subject: Using JMS, How do I receive a message with a correlid?
Apprentice
Joined: 05 May 2003 Posts: 35
Hi all
I am using jms classes QueueReceiver and QueueSender to send/receive messages.
I want to correlate the received message to the message that I sent but the QueueReceiver.receive() method does not allow me to do that.
I can read the Msgid from the message that I sent but how do I tell the QueueReceiver.receive() method to receive only the message with a particular correl ID?
For plain MQ Java code, you can simply set the correlid in the get method and that would do the trick, but how do I do it for jms?
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