D
ddog
Hi,
I've been tasked with writing code that simply reads values from a
properties file. The executing code will reside in a .war file and be
run on JBoss. I'm not able to test the code under JBoss at this time.
The code below works properly when tested via a main() method but I've
read there may be issues running it in a .war file. Can someone tell
me if this is the preferred method to do this under my circumstances?
I don't want to turn this in and have it blow up when it's deployedm :
(
FileInputStream fp =new FileInputStream(PROPERTIES_FILE);
Properties props =System.getProperties();
props.load(fp);
Thanks in advance!
I've been tasked with writing code that simply reads values from a
properties file. The executing code will reside in a .war file and be
run on JBoss. I'm not able to test the code under JBoss at this time.
The code below works properly when tested via a main() method but I've
read there may be issues running it in a .war file. Can someone tell
me if this is the preferred method to do this under my circumstances?
I don't want to turn this in and have it blow up when it's deployedm :
(
FileInputStream fp =new FileInputStream(PROPERTIES_FILE);
Properties props =System.getProperties();
props.load(fp);
Thanks in advance!