Environment : ADF application running on WebLogic Server 11gR1 - JDeveloper 11.1.1.7
Can I update and load .properties file on application run-time without restarting my weblogic server? If so please suggest how I can proceed with this requirement.
Environment : ADF application running on WebLogic Server 11gR1 - JDeveloper 11.1.1.7
Can I update and load .properties file on application run-time without restarting my weblogic server? If so please suggest how I can proceed with this requirement.
I haven't tried this, but still here it goes:
Create a method in some backing bean, callable only from an administration page. This method would look like:
public void clearResourceBundleCache() {
ClassLoader cl = this.getClass().getClassLoader();
ResourceBundle.clearCache(cl);
}
Or even simpler:
public void clearResourceBundleCache() {
ResourceBundle.clearCache();
}
To use this you would have to (1) replace the .properties files you want to change in the file system of the server and (2) call this method.
More sofisticated solutions would involve the ResourceBundle.Control
(docs).