Externalize Application Config properties with JBoss 7.1
程序员文章站
2024-01-11 18:59:28
...
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