On Mon, Apr 13, 2009 at 6:55 AM, huntc <hu...@mac.com> wrote:
>
> I have two routes (A & B) that are in-out in nature. The client calls on A, A
> calls on B and then the reply is sent back from B to A and then back to the
> client.
>
> I'd like to store some context information relating to the client
> interaction with A and then have that available when B replies to A. A
> should know nothing of this context.
>
> Is there a way of matching an exchange received from B with the original
> exchange sent to A?
You can use the enrich EIP pattern that gives you an aggregation
strategy with these 2 parameters:
- original exchange sent to B,
- the reply from B.
http://camel.apache.org/content-enricher.html





>
> Kind regards,
> Christopher
> --
> View this message in context: 
> http://www.nabble.com/Storing-context-with-exchanges-tp23017939p23017939.html
> Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus
Apache Camel Reference Card:
http://refcardz.dzone.com/refcardz/enterprise-integration

Reply via email to