users@glassfish.java.net

Re: accessing properties file across jars

From: <glassfish_at_javadesktop.org>
Date: Sat, 27 Oct 2007 17:17:22 PDT

To load the properties file, do you use something like ClassLoader.getResourceAsStream()?

This happens because of different class-loaders loading resources from different locations. In
the case it works, the class-loader that loads your ejb components loads the properties file as
well. In the case where it does not work, the class-loaders are different.

Regards,
Kedar
[Message sent by forum member 'km' (km)]

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