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 to add exception header to the message which fails

Post new topic  Reply to topic
 how to add exception header to the message which fails « View previous topic :: View next topic » 
Author Message
KK
PostPosted: Mon Dec 16, 2002 10:17 am    Post subject: how to add exception header to the message which fails Reply with quote

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
View user's profile Send private message
lung
PostPosted: Mon Dec 16, 2002 5:57 pm    Post subject: Reply with quote

Master

Joined: 27 Aug 2002
Posts: 291
Location: Malaysia

Put this line in your trace...

${ExceptionList}
_________________
lung
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
wmqiguy
PostPosted: Tue Dec 17, 2002 7:50 am    Post subject: Reply with quote

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
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 to add exception header to the message which fails
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.