|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
trycatch node |
« View previous topic :: View next topic » |
Author |
Message
|
kishoreMuthyala |
Posted: Sun Apr 11, 2004 5:58 pm Post subject: trycatch node |
|
|
Apprentice
Joined: 24 Mar 2004 Posts: 35 Location: singapore
|
hi,
Can any one tell me how to use a try catch node.How to write an esql code if we need to impliment a trycatch node.
regards
KishoreMuthyala |
|
Back to top |
|
 |
Missam |
Posted: Mon Apr 12, 2004 8:14 am Post subject: |
|
|
Chevalier
Joined: 16 Oct 2003 Posts: 424
|
Hi,
How to implement the try catch is completly dependend on the requirements and what types of errors or exceptions you want to handle.
and the basic purpose of the try catch node is,if you have a message flow and an error occured some where in the middle of the flow and you don't have your failure terminal connected.the message along with the error report is thrown back down stream.and mqsi looks for any try catch node is present along the down stream path.if one exist your message goes towards the catch terminal of try catch node and there you can connect a compute node and look for the error number or exception number and handle according to the error.
if you don't have a try catch node in between,your failed message goes to the input node and look for the catch terminal whether its connected,this catch terminal also works for you same as try catch node.if its not connected ,the message is thrown towards failure terminal of input node.
if you want to see how exception tree looks like.connect a trace node to failure terminal and in pattern type {ExceptionList} |
|
Back to top |
|
 |
catwood2 |
Posted: Thu Apr 15, 2004 8:34 am Post subject: |
|
|
Centurion
Joined: 17 May 2002 Posts: 108
|
I believe also the TryCatch is useful when you have transformations that have occured on the message prior to the node where error generated. So, if you let it unwind back to the catch terminal of the input node - you lose any transformations that occured along the line before the error was encountered. |
|
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
|
|
|
|