FAQ
Thanks gsegares_cr, but I was looking for something more global.

I've found InterceptStrategy. So I added it to
CamelContext.addInterceptStrategy and wrap the target Processor:

void process(Exchange exchange) {
   try {
     myCustomScope.startCustom();
     target.process();
   } finally {
     myCustomScope.stoptCustom()
   }
}

That fit very well as I've seen.

Thanks.



--
View this message in context: http://camel.465427.n5.nabble.com/Intercept-before-and-after-routes-invocations-tp5764529p5764555.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 3 | next ›
Discussion Overview
groupusers @
categoriescamel
postedMar 21, '15 at 5:52a
activeMar 22, '15 at 5:47a
posts3
users2
websitecamel.apache.org

2 users in discussion

Janario: 2 posts Gsegares_cr: 1 post

People

Translate

site design / logo © 2022 Grokbase