Posted: Wed Jul 16, 2014 6:34 am Post subject: MQ Generated JMS Correlation ID not working...
Newbie
Joined: 12 Feb 2014 Posts: 5
I am using MQ (version 7.5) provided JMS within my WMB flow and am running into some trouble doing a request/reply scenario.
The problem can be narrowed down to the generated correlationid not working on the JMSReceive node (if I remove the selector or just set a correlationID like "foobar" my flow works fine)
I have 2 flows - one that has a JMSOutput followed by a JMSReceive node.
The JMSReceive node has a message selector on the Correlation ID property Correlation ID =$Environment/WrittenDestination/JMS/DestinationData/JMSCorrelationID
And the second flow has a JMSInput node followed by some mediating and eventually a JMSReply node. A compute node before the JMSReply sets OutputRoot.JMSTransport.Transport_Folders.Header_Values.JMSCorrelationID to the correlation ID from the message received by the JMSInput node.
Any thoughts? I would think the system generated Correlation ID should work since both the request and reply are JMS.
After further troubleshooting I'm beginning to think the selector isn't getting set correctly correctly.
I've tried the following options in the "Correlation ID" box on the Message Selectors tab of the JMS Receive node but none of them seem to work...does anyone have an example that works?
Got it working...my solution was to set the following property in a Compute node before the JMSReceive..
SET OutputLocalEnvironment.JMS.Receive.MessageCorrelationIDSelector = '='|| ''''||InputLocalEnvironment.WrittenDestination.JMS.DestinationData.JMSCorrelationID||'''';
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