Posted: Wed Mar 18, 2009 6:31 am Post subject: How Do I Get Original Message As Raw Data
Newbie
Joined: 18 Mar 2009 Posts: 6
My MQInput Node parses the incoming message into an MRM.
If my Mapping Node fails for some reason, I want to catch the error, then create a new message for a REJECT Queue, which includes both the Exception List AND the original message data.
Is there any way to access an unparsed version of the original MQ message once the flow has been started and the MQInput node has parsed it into a known MessageFormat?
Posted: Wed Mar 18, 2009 7:17 am Post subject: Re: How Do I Get Original Message As Raw Data
Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
IQ Solutions wrote:
Is there any way to access an unparsed version of the original MQ message once the flow has been started and the MQInput node has parsed it into a known MessageFormat?
Yes - set your REJECT queue as the backout queue on the input queue. Broker will automatically put the message there if the flow fails. If you want to process the rejected message, wire up the Failure terminal on the MQInput node.
_________________ Honesty is the best policy.
Insanity is the best defence.
Posted: Wed Mar 18, 2009 8:08 am Post subject: Re: How Do I Get Original Message As Raw Data
Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
IQ Solutions wrote:
Is there any way to access an unparsed version of the original MQ message once the flow has been started and the MQInput node has parsed it into a known MessageFormat?
Yes.
Don't do the parsing in the MQInput Node
Set the MQINPUT Node to use BLOB Format
Place a Compute Node right after the MQInput Node
set Environment.Message.Save = InputRoot.BLOB.BLOB;
The place a RCD node after the compute node with the message parsing setup just like you have in the MQInput Node.
Obviously, this is just the barebones. I'd also add a Try-Catch Node into the equation and then down the Catch Path assemble the data you need to put on the Error Queue. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
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