You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Charles Moulliard <cm...@gmail.com> on 2011/04/29 10:02:46 UTC

camel aop deprecated - what alternative exist

Hi,

Since Camel 2.0, the component camel-aop is deprecated. I try to figure out
which alternative we have to add a pointcut into a camel route

ex : all my camel routes require that we update the status of the message
processed into the DB before to publish this message into the queue. To
achieve that, we can add manually the bean to be called for that purpose
into the camel route but that we would be better if I can define a pointcut
before the last processor (in this case the JMS producer) to modify the
camel route created at runtime

Is the interceptor the way to go ?

Regards,

Charles  --
View this message in context: http://camel.465427.n5.nabble.com/camel-aop-deprecated-what-alternative-exist-tp4358118p4358118.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel aop deprecated - what alternative exist

Posted by Claus Ibsen <cl...@gmail.com>.
On Fri, Apr 29, 2011 at 10:02 AM, Charles Moulliard
<cm...@gmail.com> wrote:
> Hi,
>
> Since Camel 2.0, the component camel-aop is deprecated. I try to figure out
> which alternative we have to add a pointcut into a camel route
>
> ex : all my camel routes require that we update the status of the message
> processed into the DB before to publish this message into the queue. To
> achieve that, we can add manually the bean to be called for that purpose
> into the camel route but that we would be better if I can define a pointcut
> before the last processor (in this case the JMS producer) to modify the
> camel route created at runtime
>
> Is the interceptor the way to go ?
>

Yeah you can use an interceptors for that. And you can limit based on
endpoint uri, so the interceptor only triggers for JMS endpoints etc.
Or whatever.



> Regards,
>
> Charles  --
> View this message in context: http://camel.465427.n5.nabble.com/camel-aop-deprecated-what-alternative-exist-tp4358118p4358118.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



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