camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: InterceptFrom strategy
Date Fri, 27 Aug 2010 09:46:28 GMT
On Fri, Aug 27, 2010 at 11:36 AM, Charles Moulliard
<cmoulliard@gmail.com> wrote:
> Hi,
>
> I would like to know when we use the InterceptFrom strategy if we create two
> exchanges (one for the interceptor and the other for the route) and if the
> processing of the two exchanges is done in parallel or in
> asynchronous way ?
>

The interceptor is synchronous, kinda like detouring the Exchange.

So that would be

from(direct).to(log).to(bean);


> ex :
>
> InterceptFrom().to(log)
>
> from("direct").to("bean:service");
>
> Regards,
>
> Charles Moulliard
>
> Senior Enterprise Architect (J2EE, .NET, SOA)
> Apache Camel - Karaf - ServiceMix Committer
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Blog : http://cmoulliard.blogspot.com |  Twitter :
> http://twitter.com/cmoulliard
> Linkedin : http://www.linkedin.com/in/charlesmoulliard | Skype: cmoulliard
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Mime
View raw message