ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » MQ Generated JMS Correlation ID not working...

Post new topic  Reply to topic
 MQ Generated JMS Correlation ID not working... « View previous topic :: View next topic » 
Author Message
Mrc0113
PostPosted: Wed Jul 16, 2014 6:34 am    Post subject: MQ Generated JMS Correlation ID not working... Reply with quote

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.
Back to top
View user's profile Send private message
Mrc0113
PostPosted: Wed Jul 16, 2014 10:13 am    Post subject: Reply with quote

Newbie

Joined: 12 Feb 2014
Posts: 5

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?

= '$Environment/WrittenDestination/JMS/DestinationData/JMSCorrelationID'
='$LocalEnvironment/WrittenDestination/JMS/DestinationData/JMSCorrelationID'
='$Environment/WrittenDestination/JMS/DestinationData[1]/JMSCorrelationID'
='$LocalEnvironment/WrittenDestination/JMS/DestinationData[1]/JMSCorrelationID'


Also is there a way in MQ explorer to see the selectors that a JMS client is using?

Thanks in advance!
Back to top
View user's profile Send private message
Mrc0113
PostPosted: Wed Jul 16, 2014 11:12 am    Post subject: Reply with quote

Newbie

Joined: 12 Feb 2014
Posts: 5

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||'''';
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » MQ Generated JMS Correlation ID not working...
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.