camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
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 <> 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?


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
Twitter: davsclaus, fusenews
Author of Camel in Action:

View raw message