JEE application - where to store configuration outside the EAR
843833Feb 16 2010 — edited Feb 16 2010Hello everyone,
My requirement is that I develop one application, package it and release it as an EAR or a WAR file (with Maven) and there it is and should not be changed. It should therefore be able to read an external configuration file (out of the EAR/WAR).
Now, how do I got about it? Is there a best practice? I don't want to have to hard code the location of the external configuration file like C:\blah.xml. Maybe a relative path? But can it be made server independent?
Thanks for any advice.