Posted: Mon Dec 06, 2004 6:48 am Post subject: maintaining correlid when using ReplytoQ option on MQOutput
Master
Joined: 16 May 2001 Posts: 255
Hi,
It seems I have hit this problem before but my searches have come up empty so I am posting the question here.
On the MQOutput Node I am using the ReplytoQ option on the Destination Mode so that it will reply to what is in the MQMD. This works fine but I want to maintain the correlid. I am copying the headers. I thought that by NOT checking the box new correlid this would prevent a new correlid from being created. It seems to create a new correlid though. If I use the QueueName option it works fine. If I make the report option 64(pass correlid) it works fine. Am I not using the ReplyToQ option the way it was intended? Any thoughts? Thanks!
The MQ Programming Reference has the following statement in the notes on the reporting options field of the MQMD:
Servers replying to requests or generating report messages are recommended to check whether the MQRO_PASS_MSG_ID or MQRO_PASS_CORREL_ID options were set in the original message. If they were, the servers should take the action described for those options. If neither is set, the servers should take the corresponding default action.
The MQOutput node follows this processing logic by default. When you specify pass correl id as a report option, the MQOutput node is still following this logic.
If you're client want the correl id passed back unchanged in the reponse, then it needs to request that in the report options field of the MQMD request that it sends in. _________________ Regards
John
The pain of low quaility far outlasts the joy of low price.
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