Jim Solderitsch
2009-10-08 16:21:12 UTC
I am coming from JBoss (and Oracle App Server 10g) where it is possible to place a properties file external to the application ear or war but is picked up just like it was included inside it (e.g. in WEB_INF/classes).
In JBoss, I can place the file ( call it mySettings.properties) in the conf folder inside of server/default. This folder is at the same level as the deploy folder where the actual war and ear files are located.
For Oracle 10g, this file needed to located in the applib folder and this folder is at the same level as the applications folder where the actual ear and war files are located.
Is there a location for WAS 7 where I can place this properties file so that my access method can find it. I know I can package it with the ear itself, but we like the properties file to be outside of the deployable ear so that it can be adjusted to handle external dependencies.
We have a PropertyManagerFactory where we generate an instance and from this instance we retrieve properties like this:
PropertyManagerFactory.getInstance().getValue(LOGO_LOCATION_PROPERTY, ".");
LOGO_LOCATION_PROPERTY is defined in mySettings.properties and the value there may be different depending on where we deploy the ear.
Any answers to my situation will be much appreciated.
In JBoss, I can place the file ( call it mySettings.properties) in the conf folder inside of server/default. This folder is at the same level as the deploy folder where the actual war and ear files are located.
For Oracle 10g, this file needed to located in the applib folder and this folder is at the same level as the applications folder where the actual ear and war files are located.
Is there a location for WAS 7 where I can place this properties file so that my access method can find it. I know I can package it with the ear itself, but we like the properties file to be outside of the deployable ear so that it can be adjusted to handle external dependencies.
We have a PropertyManagerFactory where we generate an instance and from this instance we retrieve properties like this:
PropertyManagerFactory.getInstance().getValue(LOGO_LOCATION_PROPERTY, ".");
LOGO_LOCATION_PROPERTY is defined in mySettings.properties and the value there may be different depending on where we deploy the ear.
Any answers to my situation will be much appreciated.