users@glassfish.java.net

Re: load properties file in a war context

From: <glassfish_at_javadesktop.org>
Date: Wed, 05 Sep 2007 01:33:38 PDT

As your properties file is not in a jar, you'll want to put it in the classes directory:

WEB-INF/classes/myfile.properties
WEB-INF/lib/mylib.jar

Then you should be able to retrieve it using getResourceAsStream.
[Message sent by forum member 'dkoper' (dkoper)]

http://forums.java.net/jive/thread.jspa?messageID=233976