Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: add diagram of message flow and some short summary of what happens on a route
Gliffy Diagram
sizeL
nameMessage flow in Route
alignleft
version2

Messsage exchange patterns and the Exchange object

...

The Exchange API provides two methods to get a message, either getIn or getOut.
Obviously the getIn gets the IN message, and the getOut gets the OUT message.

Flow of an exchange through a route

Gliffy Diagram
sizeL
nameMessage flow in Route
alignleft
version2
  • The out message from each step is used as the in message for th next step
  • if there is no out message then the in message is used instead
  • For the InOut MEP the out from the last step in the route is returned to the producer. In case of InOnly the last out is thrown away
Tip
titleBeware of getOut to check if there is an out message

exchange.getOut creates an out message if there is none. So if you want to check if there is an out message then you should use exchange.hasOut instead

Using getIn or getOut methods on Exchange

...