On Fri, Apr 29, 2011 at 10:02 AM, Charles Moulliard <cmoulli...@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: cib...@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/