Hey Debraj, If you would like to reload just your bean add <cm:managed-properties pid=„wf” update-strategy="component-managed" update-method="methodToCall" /> 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 service proxy.
Best regards, Łukasz — [email protected] Twitter: ldywicki Blog: http://dywicki.pl Code-House - http://code-house.org > Wiadomość napisana przez Debraj Manna <[email protected]> w dniu 2 mar > 2016, o godz. 12:50: > > > 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 > something is changed in wf.cfg it is immediately available to bundle. For > this I have added the following in my blueprint.xml > > <cm:property-placeholder persistent-id="wf" > update-strategy="reload"> > <cm:default-properties> > <cm:property name="env" value="local" /> > </cm:default-properties> > </cm:property-placeholder> > > <!-- a bean that uses a blueprint property placeholder --> > <bean id="configBean" > class="com.jabong.orchestratorservice.basecomponent.config.ConfigBean"> > <property name="env" value="${env}" /> > </bean> > > > The problem I am facing now is if the update-strategy is set to reload. Then > it seems to be reloading the entire bean. > > Can someone let me know is there a way I can reload only the configBean not > the entire bundle? If I can achieve this then may be I can have some static > reference to the config variables inside the configBean which my application > bundle can then make use of? > > The full blueprint.xml is placed here > <https://gist.github.com/anonymous/b7482ab89766a57b162d>. > > > > > > >
