Dynamic Config Loading in Camel Application Bundle in Karaf 3.0.5

2016-03-02 Thread Debraj Manna
I have a simple Camel Application bundle which is to be deployed in Karaf 3.0.5 under Apache Service Mix 6.1. The configuration file is placed in etc/ directory (let's say it is named as wf.cfg). I want to have the dynamic config change functionality in my application bundle. So that whenever somet

Re: Dynamic Config Loading in Camel Application Bundle in Karaf 3.0.5

2016-03-02 Thread David Jencks
It would be a big change, but you might consider switching your application to use declarative services rather than blueprint. IMO blueprint is sort of spring shoehorned to sort of vaguely work a little bit in OSGI whereas DS is actually designed from the start to take full advantage of osgi.

RE: Dynamic Config Loading in Camel Application Bundle in Karaf 3.0.5

2016-03-03 Thread CLEMENT Jean-Philippe
P De : David Jencks [mailto:david_jen...@yahoo.com] Envoyé : mercredi 2 mars 2016 18:20 À : user@karaf.apache.org Objet : Re: Dynamic Config Loading in Camel Application Bundle in Karaf 3.0.5 It would be a big change, but you might consider switching your application to use declarative services ra

Re: Dynamic Config Loading in Camel Application Bundle in Karaf 3.0.5

2016-03-03 Thread Łukasz Dywicki
Hey Debraj, If you would like to reload just your bean add element inside „configBean” definition. Each update will result in calling given method. I don’t remember if it will set properties first. Other strategy which you could try is container-managed. For sure both will behave as managed s

Re: Dynamic Config Loading in Camel Application Bundle in Karaf 3.0.5

2016-03-03 Thread Debraj Manna
Thanks. This is what I was looking for. On Thu, Mar 3, 2016 at 11:41 PM, Łukasz Dywicki wrote: > > Hey Debraj, > If you would like to reload just your bean add pid=„wf” update-strategy="component-managed" update-method="methodToCall" /> > element inside „configBean” definition. Each update will