Externalize Application Config properties with JBoss 7.1

If you have configuration properties that need to be changed dynamically without restarting application server, you need to externalize the properties file in a folder and add this folder to the application servers class path.

The second thing you need to do is to use a configuration util to periodically scan the properties file. If the file has been changed, it would load the newly changed properties to your application. Apache ConfigUtil is just for that.

1. add external folder to JBoss class path

2. use apache Config utils to monitor and load property changes

// TODO: not finished yet

猜你喜欢

转载自jxee.iteye.com/blog/2100772