L.S.,

It's OK for the Camel routes to be shutdown when the configuration
gets updated.  With the update strategy set to reload, the entire
Blueprint application will be reloaded, so that also means the Camel
routes will be shutdown and then started again in order to pick up the
new configuration.  If you only want to update the values inside the
myProcessor bean but leave everything else running, you probably have
to resort to another approach like e.g. using <managed-properties/>
instead of the property placeholder.

>From your question, I understand that there's a problem restarting the
routes though?  If you only see them being shut down and don't see the
subsequent restart, it would be helpful to see the output of osgi:list
for that bundle (so we know what state the Blueprint stuff is in).
Also, some extra logging might help us troubleshoot what's going on
here.


Regards,

Gert Vanthienen


On Mon, Aug 5, 2013 at 1:27 PM, jay <[email protected]> wrote:
> Hi, Today i have seen a strange issue that routes are getting shutdown when i
> set the update-strategy to reload in my blueprint xml file.
>
> Context: i am trying to update the config file using the java code and
> injecting the updated properties to a bean - but it is not happening.
>
>
> When i deploy my bundle in Fuse ESB first time all my properties gets loaded
> to bean, but as soon as my config file updated then all the routes are
> getting shutdown.
>
>
> here is the code:
> bluprint.xml
>
>
> <cm:property-placeholder persistent-id="xyz" update-strategy="reload">
>         <cm:default-properties>
>             <cm:property name="aaa" value="N"/>
>             <cm:property name="bbb" value="001"/>
>             <cm:property name="ccc" value="001"/>
>         </cm:default-properties>
>     </cm:property-placeholder>
>
>  <bean id="myProcessor" class="aa.xx.x.MyProcessor">
>         <argument value="${aaa}"/>
>         <argument value="${bob}"/>
>         <argument value="${ccc}"/>
>     </bean>
>
>
> Is there anything wrong i am doing here- i appreciate if some can let me
> know your views?
>
>
>
> --
> View this message in context: 
> http://servicemix.396122.n5.nabble.com/Routes-are-shutting-down-when-i-set-the-update-strategy-to-reload-in-Fuse-ESB-7-1-tp5717499.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to