The Error Message Redirector communication point allows tracked messages, which have met some error condition specified in a message tracking scheme, to be redirected for further processing rather than simply being discarded or sent to the error queue.
The Error Message Redirector is a bidirectional communication point and only functions in bidirectional mode. Essentially, it works by receiving in the input direction the very messages which it sends in the output direction. The messages it sends are messages which have been forwarded to it by the message tracking functionality. As this message forwarding occurs internally, there is no need to attach a connector from a filter elsewhere on the route to the communication point; the communication point can stand alone on the output side of the route. While it is possible to have a connector leading to the communication point from a filter, this is not the expected usage of the Error Message Redirector, and could potentially lead to messages being sent in an infinite loop (if there is a path leading from the communication point in input mode to the same communication point in output mode).
The sending of a message is synchronized with the receiving of the message, so that a send is not considered complete until the receive is complete. This means that messages cannot be lost if Rhapsody shuts down during a send or receive. The received message is then copied, and it is this copy which enters Rhapsody as a new message with its own message id. Redirecting messages in this way through the Error Message Redirector communication point means that a route can be created using the standard Rhapsody functionality to specifically handle the error condition of a tracked message not receiving a response. The following image illustrates a sample route.
The Error Message Redirector communication point has no configuration properties. Using it is simply a matter of adding it to a route, and then configuring one or more message tracking schemes to send messages to it upon error.
Supported Operational Modes: Bidirectional