I have a need to create a composite configuration from a set of defaults
stored in resources and a user-defined set of overrides. Additionally, I
need to configure a reload monitor for the user-defined overrides file.

This works fine as long as both files are present. Obviously the resource
defaults file will always be there, but the user-defined overrides file may
or may not be present at startup. 

I've found that if the user-defined file is present, the periodic reload
trigger works fine, but if the file is missing on startup, then no periodic
check is done - ever.

By setting custom location strategy and reloading detector factory
instances, I can manage to make this work as long as the file exists at
startup. But no set of conditions I've found will make this system work if
the user overrides file is not present on startup. 

Has anyone done this before with a nice little solution?

Thanks,
John



--
Sent from: http://apache-commons.680414.n4.nabble.com/Commons-User-f735979.html

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org

Reply via email to