I consider a web application deployed in Tomcat. Some MBean is registered and available through the JConsole.
When I call an operation on this MBean, it seems the ClassLoader of the RMI call is not specific to the WebApp which has registered the MBean. Given http://tomcat.apache.org/tomcat-7.0-doc/class-loader-howto.html, I guess it uses the ClassLoader of Bootstrap, System or Common.
How could I execute the RMI/MBean call with the WebApp classloader having registered the MBean?