Closed rajkumar79 closed 10 years ago
We have a lot of properties in the config files that we refer in the mule flows, we would like to change them at run time without restarting the JVM,
How do changes done on the ZUUL server are refreshed in the spring client used in a different JVM.
The Spring PropertyPlaceholderConfigurer is not dynamic. The context/beans need to be recreated. Mule is built on spring so it has the same limitation. You'd have to restart the application. If you want to bypass spring for a custom component, etc., you can use this:
https://github.com/mcantrell/zuul-spring-client#using-without-spring
Here is a blog here which describes a way to make a reloadable property placeholder. Depending on what you actually want to change, the mule components may need to be recreated or the the lifecycle methods invoked as well.
There's really no difference between it and spring properties. Once the the client and placeholder are configured, you can just use the expression directly into your flow:
https://github.com/mcantrell/zuul-spring-client/ http://www.mulesoft.org/documentation/display/current/Using+Parameters+in+Your+Configuration+Files
Did you have a specific use case that maybe I can help clarify?