I have add the property file "password.xml" to the EAR project as a "password.jar" file Update the manifest file of the Java project to access the "password.jar" file within the EAR project by doing the following:
InputStream is = this.getClass().getResourceAsStream("password.xml"); but it doesn't work.
-
Property file from witing EAR file (1 messages)
- Posted by: sho mak
- Posted on: November 10 2004 08:14 EST
Threaded Messages (1)
- Context class loader by Jeff Drost on November 12 2004 13:52 EST
-
Context class loader[ Go to top ]
- Posted by: Jeff Drost
- Posted on: November 12 2004 13:52 EST
- in response to sho mak
InputStream is = this.getClass().getResourceAsStream("password.xml"); but it doesn't work.
try Thread.currentThread().getContextClassLoader().getResourceAsStream("password.xml")