You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "Muenkel, Markus" <ma...@sap.com> on 2011/11/28 09:50:37 UTC
How to apply configuration globally for all deployed contexts
(OSGi)?
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
Re: How to apply configuration globally for all deployed contexts (OSGi)?
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
This is on the roadmap for Camel 3.0 / SMX 5.0, to make it possible to
install star/stop bundles which can add tracers / interceptors / etc.
to any running Camel applications.
On Mon, Nov 28, 2011 at 9:50 AM, Muenkel, Markus <ma...@sap.com> 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
>
--
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/
Re: How to apply configuration globally for all deployed contexts
(OSGi)?
Posted by Willem Jiang <wi...@gmail.com>.
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