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: Intercept processor/bean
Date Mon, 20 Aug 2012 06:11:12 GMT
On Fri, Aug 17, 2012 at 10:17 PM, Ɓukasz Dywicki <luke@code-house.org> wrote:
> Hey all,
> Is there a way to intercept custom processor execution?
>
> For example my route is following:
> process(new LoggingProcessor())
> or
> processRef("loggingProcessor")
>
> Also, is it's even possible to use interceptSendToEndpoint with
>
> bean or beanRef DSL elements?
>

Hi

I think Babak have covered this well. Just to add that if you use
bean/beanRef instead of process/processRef then you can use the
interceptSendToEndpoint etc. to intercept sending to the bean.

in the bean you can still implement org.apache.camel.Processor, and
have Camel leverage that. So its just a matter of changing in the
route DSL.

> Kind regards,
> Lukasz



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message