Skip to Content
0
Former Member
Oct 04, 2005 at 04:39 AM

Application specific .PROPERTIES file

24 Views

Hello,

I am currently making a transition from JBOSS and trying to figure out <b>what is the best option to place the application Specific .PROPERTIES files in SAP WAS 6.40</b>.

<b>Background</b> - Our application comprises of multiple components (jars) with each component having a .PROPERTIES file with some component specific properties. In recent versions of Jboss, we had the capability of adding our file references to a Property Service in JBOSS and as a result all these application properties (eg log.filename) are available through System.getproperty as they are dyanmically loaded by Jboss. <b>Is there a similar mechanism in SAPWAS to define custom application properties?</b>

I have come across numerous posts which suggest putting property files in WEB-INF/classes dir, but is this the only way to do it?? This implies all our .PROPERTIES files will need to be packaged into the war file which doesenlt sound like the best option.

One option i can think of is somehow getting hold of the current application dir (using something like System.getpropery(application.dir) ) and putting all our files under a directory under Application.dir. Not sure whether this is a good option or not.

Kinda getting desperate to find a standard solution to this problem. Any help will be greatly appreciated and rewarded.

Cheers

Dushy