Posted: Tue Nov 11, 2003 9:39 am Post subject: Correlating MQ message via JMS using JMSCorrealtionId
Newbie
Joined: 11 Nov 2003 Posts: 7 Location: UK
Hi,
I've written a JMS application to send a message to an MQ and select it straight back off the MQ via JMS using a selector (it's just an investigation so doesn't make much sense I know!). I did this by setting the JMSCorrelationId on the outgoing message & selecting on this in the return. I couldn't get this to work at first but I found a post on another support site that had some code to set up a selector based on the hex value of the correlationId returned from MQ. This now works. I still don't understand why though? Can anyone help? Is it because this is the MQMD value of the correlation ID?
If so can anyone point me in the direction to help me understand how to return the MQRFH2 header back with my message? (Can I then select on the correlationId as the original value I set & not the hex converted value?).
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