First a basic out line of what I am trying to do
- I have a MQ that I want to read messages from
- Preprocess the XML, and set a property on the Exchange
- Make a HTTP request
- Process data from http request and from the property on the initial exchange
- Put it on an outbound message Queue
I have been looking around to confirm that each time that a message is read off of the initial MQ that a new Exchange will be created. I haven't been able to find anything that says that explicitly, but I am assuming and was wondering if someone could confirm or deny that is the case.
Is an exchange only used once? And does a route create a new exchange for each message that comes in?
Thanks!
EDIT: And of course my pair then immediately googles and finds the answer. Yes it is unique and we found the documentation on the Exchange API here http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/Exchange.html