Go to ClassLoaderSystem(MBean) and invoke its getClassLoaderForClass for RARDeployment class.
Ales,
The only MBean tht I found was jboss.classloader:service=ClassLoaderSystem. Unfortunately there is no such getClassLoaderForClass method.
Actually there is no method to invoke, only DomainNames and Domains attributes.
Andre
Ah, it's the ClassLoaderDomainMBean that has
/** * Find the classloader for a class * * @param name the class name * @return the classloader or null if it is not loaded by a managed classloader * @throws ClassNotFoundException when the class is not found */ ObjectName findClassLoaderForClass(String name) throws ClassNotFoundException;
Result from DefaultDomain.findClassLoaderForClass(org.jboss.resource.deployers.RARDeployment):
jboss.classloader:id="vfsfile:/C:/Java/jboss-5.1.0.GA/server/default/deployers/jboss-jca.deployer/"