From: <ad...@jb...> - 2005-07-27 18:14:55
|
Actually, I posted the wrong link: http://docs.jboss.org/jbossas/javadoc/4.0.2/org/jboss/mx/loading/RepositoryClassLoader.html#getClasspath() You would want to use code like: | URL[] urls = null; | ClassLoader cl = Thread.currentThread().getContextClassLoader(); | if (cl instanceof RepositoryClassLoader) | urls = ((RepositoryClassLoader) cl).getClassPath(); | else if (cl instanceof URLClassLoader) | urls = ((URLClassLoader) cl).getURLs(); | else | throw new DeploymentException("Unable to determine urls for classloader " + cl); | // Use the urls here | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3886896#3886896 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3886896 |