|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Difference between InputExceptionList from Failure and Catch |
« View previous topic :: View next topic » |
Author |
Message
|
nelson |
Posted: Mon Feb 02, 2015 6:02 am Post subject: Difference between InputExceptionList from Failure and Catch |
|
|
 Partisan
Joined: 02 Oct 2012 Posts: 313
|
Hi all,
I have noticed that the InputExceptionList is quite different if we reference it from the Failure or from the Catch terminal of an input node. From the catch terminal the InputExceptionList it's complete and we are able to construct a more specific error message, the opposite when the InputExceptionList is propagated from the Failure terminal, usually it only says that 'Dequeued failed message. Propagating a message to the failure terminal'.
In the Knowledge Center is mention something like that, but not clear why the InputExceptionList is not full populated.
Quote: |
When a message is propagated to the Failure or Catch terminal, the node creates and populates a new exception list tree with an exception that represents the error that has occurred. The exception list is propagated as part of the message tree. When a message is propagated to the Failure terminal because of a problem that occurred in the Out or Catch flows (for example, repeated parsing errors that caused the backout threshold to be met), the original parsing errors are not in the exception list; the exception list contains the exception that indicates that the backout threshold has been met. |
We want the behavior of the Failure terminal, but... need the InputExceptionList of the Catch terminal...
Any idea? |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Feb 02, 2015 6:06 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Create a flow attached to the catch terminal that rethrows the exception with the information in the current exception list...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Feb 02, 2015 6:10 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
There's a difference in the exception list between the two terminals because there's a difference between the two terminals.
They are called at different points in time in the lifetime of a flow instance, they are called in response to different events, and they act differently.
Consequently, they have different information available to them when they propagate. |
|
Back to top |
|
 |
nelson |
Posted: Mon Feb 02, 2015 6:19 am Post subject: |
|
|
 Partisan
Joined: 02 Oct 2012 Posts: 313
|
Thanks for your clarifications! |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Feb 02, 2015 6:26 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
In general, you should spend some time considering why you need to connect anything to the Failure terminal. |
|
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
|
|
|
|