Posted: Wed Oct 09, 2002 12:27 am Post subject: Converting a datagram into a request
Apprentice
Joined: 03 Apr 2002 Posts: 28 Location: New Zealand
Hi there
I have an application which can only send datagrams (This cannot be changed). I need to convert this to a request message within the broker.
One suggestion was to add a compute node with the following:
SET OutputRoot = InputRoot;
-- Enter SQL below this line. SQL above this line might be regenerated, causing any modifications to be lost.
SET OutputRoot.MQMD = InputRoot.MQMD;
SET OutputRoot.MQMD.MsgType = 1;
This however is not successful. The message remains a datagram.
Does anyone have another solution/suggestion for this ?
Try specifying MQMT_REQUEST instead of the number.
And/or, I think you need to set header values before copying the rest of the message, so just set the compute node to copy headers. (I always get caught out with that.)
SET OutputRoot.MQMD.MsgType=MQMT_REQUEST;
SET OutputRoot.XML=InputBody;
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