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 » WebSphere Message Broker (ACE) Support » How Do I Get Original Message As Raw Data

Post new topic  Reply to topic
 How Do I Get Original Message As Raw Data « View previous topic :: View next topic » 
Author Message
IQ Solutions
PostPosted: Wed Mar 18, 2009 6:31 am    Post subject: How Do I Get Original Message As Raw Data Reply with quote

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?
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Mar 18, 2009 7:17 am    Post subject: Re: How Do I Get Original Message As Raw Data Reply with quote

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.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Wed Mar 18, 2009 8:08 am    Post subject: Re: How Do I Get Original Message As Raw Data Reply with quote

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.
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 » WebSphere Message Broker (ACE) Support » How Do I Get Original Message As Raw Data
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.