|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
how to add exception header to the message which fails |
« View previous topic :: View next topic » |
Author |
Message
|
KK |
Posted: Mon Dec 16, 2002 10:17 am Post subject: how to add exception header to the message which fails |
|
|
Newbie
Joined: 09 Dec 2002 Posts: 8
|
hi all,
I want to add a trace or exception to my incomming message
.
Incomming is XML and out going is CWF cobol format.
what i want to achive is something like what we get when we use usertrace on command line.
if there is some parsing error, i wud like to add some message on it that is cause of error and put it on fail Q.
Thanks in adv,
KK |
|
Back to top |
|
 |
lung |
Posted: Mon Dec 16, 2002 5:57 pm Post subject: |
|
|
 Master
Joined: 27 Aug 2002 Posts: 291 Location: Malaysia
|
Put this line in your trace...
${ExceptionList} _________________ lung |
|
Back to top |
|
 |
wmqiguy |
Posted: Tue Dec 17, 2002 7:50 am Post subject: |
|
|
 Centurion
Joined: 09 Oct 2002 Posts: 145 Location: Florida
|
We have done something similar to what you want. We have created a simple subflow that we add to catch any exceptions and place them on a Failure queue.
The subflow basically takes the Exception list and adds it to the XML message for later perusal. Additionally, we have created a messageflow that can then reprocess this is necessary.
For example, the input message looks like:
<A>
<b>data</b>
</A>
If an exception was thrown and rolled back to the "catch", it would create this:
<PROBLEM>
<originalQ>SourceQueue<originalQ>
<ExceptionList>Add it here</ExceptionList>
<OriginalMessage>
<A>
<b>data</b>
</A>
</OriginalMessage
</PROBLEM>
This is an oversimplification and other stuff is saved also, like CCSID, etc.
This makes available the data and the exception list. It also allows you to reprocess if you want to. Just build a message flow that strips off the exception list (and other stuff) and route it to the originalQ.
Remember.....error handling is FUN!
Good Luck!
Todd |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|