Confluex / Zuul

Keymaster and Gatekeeper - Application Configuration Management
http://confluex.com
Apache License 2.0
42 stars 32 forks source link

Could you provide some information how a Zule Property file can be read by a Mule Flow at run time #57

Closed rajkumar79 closed 10 years ago

mcantrell commented 10 years ago

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?

rajkumar79 commented 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.

mcantrell commented 10 years ago

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.

http://www.wuenschenswert.net/wunschdenken/archives/127