WebSphere Message Broker, Version 8.0.0.7 Operating Systems: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS

See information about the latest product version

Message tree contents after an exception

The contents of the message tree are updated if an exception is raised.

If no exception occurs while processing the message, the tree structure and content received by an individual node is determined by the action of previous nodes in the flow. If an exception occurs in the message flow, the content of the four trees depends on the following factors:

Exception handling paths in a message flow

Exception handling paths start at a failure terminal (most message processing nodes have these), the Catch terminal of an input node, a TryCatch node, or an AggregateReply node, but are no different in principle from a normal message flow path. Such a flow consists of a sequence of nodes connected together by the designer of the message flow. The exception handling paths differ in the kind of processing that they do to record or react to the exception. For example, they might examine the exception list to determine the nature of the error, and take appropriate action or log data from the message or exception.

The local environment and message tree that are propagated to the exception handling message flow path are those at the start of the exception path, not those at the point when the exception is thrown. The following figure illustrates this point:

Diagram shows an extract of a message flow, which is described in the following text
  • A message (M1) and local environment (L1) are being processed by a message flow. They are passed through the TryCatch node to Compute1.
  • Compute1 updates the message and local environment and propagates a new message (M2) and local environment (L2) to the next node, Compute2.
  • An exception is thrown in Compute2. If the failure terminal of Compute2 is not connected (point B), the exception is propagated back to the TryCatch node, but the message and local environment are not. The exception handling path starting at point A has access to the first message and local environment, M1 and L1. The environment tree is also available and retains the content it had when the exception occurred.
  • If the failure terminal of Compute2 is connected (point B), the message and local environment M2 and L2 are propagated to the node connected to that failure terminal. The environment tree is also available and retains the content it had when the exception occurred.
Notices | Trademarks | Downloads | Library | Support | Feedback

Copyright IBM Corporation 1999, 2016Copyright IBM Corporation 1999, 2016.

        
        Last updated:
        
        Last updated: 2016-05-23 14:46:01


Concept topicConcept topic | Version 8.0.0.7 | ac00545_