You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by gilboy <jo...@gmail.com> on 2013/01/11 22:30:25 UTC

Camel Exchange object query

Hi

Assume the following route:

*From Endpoint A -> Processor B -> Processor C -> Processor D -> To Endpoint
E*

>From my understanding, the consumer for Endpoint A is responsible for
creating the exchange in this route. 

My question is - is it the same instance of the exchange object that moves
through the different processors in the route or is the channel between each
processor creating a new instance of the exchange object

Thanks
Joe



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-Exchange-object-query-tp5725423.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel Exchange object query

Posted by Claus Ibsen <cl...@gmail.com>.
On Fri, Jan 11, 2013 at 10:30 PM, gilboy <jo...@gmail.com> wrote:
> Hi
>
> Assume the following route:
>
> *From Endpoint A -> Processor B -> Processor C -> Processor D -> To Endpoint
> E*
>
> From my understanding, the consumer for Endpoint A is responsible for
> creating the exchange in this route.
>
> My question is - is it the same instance of the exchange object that moves
> through the different processors in the route or is the channel between each
> processor creating a new instance of the exchange object
>

There were a couple of questions at stackoverflow about the Camel
concepts that may clear up a few things

http://stackoverflow.com/questions/14195675/apache-camel-terminology-subtleties
http://stackoverflow.com/questions/14195898/apache-camel-what-is-actually-being-routed

> Thanks
> Joe
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-Exchange-object-query-tp5725423.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Re: Camel Exchange object query

Posted by Christian Müller <ch...@gmail.com>.
In general, it's the same instance. But for some EIP's like splitter,
multicast, a wire tap, ... we have to create a new instance.

Best,
Christian
Am 11.01.2013 22:30 schrieb "gilboy" <jo...@gmail.com>:

> Hi
>
> Assume the following route:
>
> *From Endpoint A -> Processor B -> Processor C -> Processor D -> To
> Endpoint
> E*
>
> From my understanding, the consumer for Endpoint A is responsible for
> creating the exchange in this route.
>
> My question is - is it the same instance of the exchange object that moves
> through the different processors in the route or is the channel between
> each
> processor creating a new instance of the exchange object
>
> Thanks
> Joe
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Camel-Exchange-object-query-tp5725423.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>