Author |
Message
|
ethan_1988 |
Posted: Thu May 01, 2014 9:52 am Post subject: JMS RECIEVR NODE MessageCorrelationIDSelector doesnt work |
|
|
Novice
Joined: 07 Feb 2014 Posts: 16
|
Hi Guys,
I am having JMSoutNode followed by Compute node and JMS receiver Node. In the compute node i am setting MessageCorrelationIDSelector in OutputLocalEnvirionment but JMS RECIEVR node doesnt fetch the message out. I tried to put the JMSCorrelation ID string in different way but noting seems like to working. IT says "('MQCC_FAILED') reason '2459' ('MQRC_SELECTOR_SYNTAX_ERROR')."
I think i m doing a minor error in the syntax some where and not getting response back..
i tried following lines of codes..
Code: |
1) DECLARE JMSID CHARACTER SUBSTRING (InputLocalEnvironment.WrittenDestination.JMS.DestinationData.JMSMessageID AFTER 'ID:');
SET OutputLocalEnvironment.JMS.Receive.MessageCorrelationIDSelector = JMSID;
2)SET OutputLocalEnvironment.JMS.Receive.MessageCorrelationIDSelector = InputLocalEnvironment.WrittenDestination.JMS.DestinationData.JMSMessageID;
3)SET OutputLocalEnvironment.JMS.Receive.MessageCorrelationIDSelector = 'JMSCorrelationID='||JMSID;
|
But the same error comes evrytime...
I ll appreciate any hint or help on this.. I have read some documentation but no where its clearly documented..
Thanks |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu May 01, 2014 11:49 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20763 Location: LI,NY
|
Form 2 should be the right one... let us know what else you get...
What version of broker are you using (4 digits please) ?
And don't forget to set transactionality NO on the JMSOutnode...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
ethan_1988 |
Posted: Thu May 01, 2014 12:11 pm Post subject: |
|
|
Novice
Joined: 07 Feb 2014 Posts: 16
|
I was firmly beliveing tha approach 2 should be right but dont know y it doesnt work.. My broker is 8003. And transactionality is obviosly set to NO.. i see the message comes on the reply Q from where JMS reciever node reads the response.. evn if i remove the value for MessageCorrelationIDSelector and clear all selector criteria... JMS receiver node can read the msg them.. means nothing is wrong with the msg.. |
|
Back to top |
|
 |
ethan_1988 |
Posted: Thu Jun 19, 2014 9:51 am Post subject: |
|
|
Novice
Joined: 07 Feb 2014 Posts: 16
|
The working code is :
Code: |
SET OutputLocalEnvironment.JMS.Receive.MessageCorrelationIDSelector = '='|| ''''||InputLocalEnvironment.WrittenDestination.JMS.DestinationData.JMSMessageID||''''; |
Set this before JMS reciver node.  |
|
Back to top |
|
 |
|