use URLCLassLoader
For example
Method method = null;
method = Thread.class.getMethod("getContextClassLoader", null);
return (ClassLoader) method.invoke(Thread.currentThread(), null);
urls = classLoader.getResources
Rob Helmer wrote:
I'm trying to load a properties file from a JAR that's in
$JBOSS_HOME/server/default/lib
I assumed that this directory was implicitly in the classpath
for anything deployed in $JBOSS_HOME/server/default/deploy,
however that does not seem to be the case.
I wrote a little testcase l