...
Messsage exchange patterns and the Exchange object
The Camel API is influenced by APIs such as JBI specification, CXF which defines a concept called Message Exchange Patterns (MEP for short).
...
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.
Using getIn or getOut methods on Exchange
Now suppose you want to use a Camel Processor to adjust a message. This can be done as follows:
...