lundi 30 mars 2015

Dynamic loading of property files without app restart on org.apache.commons.configuration.ConfigurationException

How can load a property file after the web application startup.


I know we have ways to reload a property file in case of changes ( java 7 NIO , apache commons )


Issue that I'm trying to solve is that say the property file was not found/mount issue/permissions, then I want to file to be automatically loaded when its accessing again without having to restart the web application.


I'm currently using org.apache.commons.configuration.CompositeConfiguration to load multiple config files.


Intention is to try reloading the file on org.apache.commons.configuration.ConfigurationException


Appreciate any pointers on this.


Aucun commentaire:

Enregistrer un commentaire