Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JEE application - where to store configuration outside the EAR

843833Feb 16 2010 — edited Feb 16 2010
Hello 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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 16 2010
Added on Feb 16 2010
2 comments
96 views