Posted: Fri Jun 04, 2004 11:45 am Post subject: How to use Message ID
Apprentice
Joined: 30 Mar 2004 Posts: 41
Hi
I am using MQClient connection in Java. I put a lot of IMS messages on a bridge q and read them from a local q. How do i relate the "response" message with the "request" message. I thought of two ways
1. Use message Id to tag the message request and response. I thought of using "msg.messageId = MQC.MQPMO_NEW_MSG_ID" to generate new msg id's. But have to figure out how to convert them into a byte array. Using thsi technique? how do i read the msg from the Q so i get the response to my tagged request?
2. Create a dynamic Q as the reply to Q and then read from that Q the msg? Message expiry and Dynamic expiry have to be sync'd up to prevent the flooding of dead letter q.
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