This content has been marked as final.
Show 2 replies
-
1. Re: best way to read in properties ?
peterj Oct 10, 2008 2:47 PM (in response to devireddy)#3 is preferred, #2 usually also works (but do not ask me under what circumstances #3 would work but #2 would not), and #1 is to be avoided (it uses the master classloader, from what I recall, which will not get properties out of JARs embedded within EAR or WAR files).
And yes, placing the properties file within a JAR within the EAR or WAR (or event at WEB-INF/classes within a WAR) is the best place for such files. -
2. Re: best way to read in properties ?
devireddy Oct 10, 2008 2:51 PM (in response to devireddy)Thq peter