It looks like a container level work instead of camel context level
work.
I'm not sure how do you create your camel context in the OSGi
container.
If you are using Spring or Blueprint , maybe you can override the
namespace handler part to add the Tracer or EventNotifier by yourself.
On Mon Nov 28 16:50:37 2011, Muenkel, Markus wrote:
Hello,
For monitoring purposes I would like to track Exchanges in all Camel contexts
that have been started in an OSGi container. I noticed a similar discussion in
the following thread:
http://camel.465427.n5.nabble.com/intercept-route-td4521314.html#a4521358.
The aim would be to automatically apply Camel objects like Tracer,
InterceptStrategy and EventNotifier without having to configure this in each
and every deployed CamelContext.
Without this feature it seems I have to add
CamelContext.getManagementStrategy().addEventNotifier(myEventNotifier);
CamelContext.addInterceptStrategy(myInterceptStrategy); // etc.
for all CamelContexts separately in the Java route builder, or the analogous
configuration for Camel XML DSL.
Is the feature meanwhile supported? I am currently using Camel 2.8.1.
Best regards,
Markus
--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang