• Post Reply Bookmark Topic Watch Topic
  • New Topic

common field to send and receive a message from a queue

 
logu kumar
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I need to send a message to a IBM MQ... while sending i have to set a property to the message... My requirement is while retrieving the reply message from the reply queue, i need the same property having the same value. Can you suggest me how to do this


Thanks in advance
logu
SCJP5.0
SCWCD1.4
 
RaviNada Kiran
Ranch Hand
Posts: 528
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My suggestion would be to supply the correlation ID with the request message if you can:

m.setText(request);
m.setJMSReplyTo(replyQueue);
myId = /* generate a unique id */
m.setJMSCorrelationID(myId)

----------

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!