RE: [JBoss-user] loading properties files from a JAR on the classpath..

2003-11-19 Thread Srinivas Malladi
use URLCLassLoader For example Method method = null; method = Thread.class.getMethod("getContextClassLoader", null); return (ClassLoader) method.invoke(Thread.currentThread(), null); urls = classLoader.getResources

Re: [JBoss-user] loading properties files from a JAR on the classpath..

2003-11-19 Thread Weiqi Gao
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