[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: ClassLoader behaviour on remote clustering tests

clebert.suconic@jboss.com do-not-reply at jboss.com
Wed Apr 9 09:45:42 EDT 2008


The only thing we do on the server side is a ClassLoaderDelegate.

At Service Container:

   private void registerClassLoader() throws Exception
  |    {
  |       ClassLoader cl = getClass().getClassLoader();
  |       mbeanServer.registerMBean(new ClassLoaderJMXWrapper(cl), CLASS_LOADER_OBJECT_NAME);
  |    }
  | 

And this is the ClassLoaderWrapper:

http://anonsvn.jboss.org/repos/messaging/branches/Branch_Stable/tests/src/org/jboss/test/messaging/tools/container/ClassLoaderJMXWrapper.java


You could as a test remove the usage of ClassLoaderJMXWrapper as a test on ServiceContainer. But I believe you should still look for a fix as you might find this bug in other scenarios. (Better to be safe IMO). Maybe you should simulate the same classLoader scenario on a testcase at the AOP sourcetree.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142733#4142733

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142733



More information about the jboss-dev-forums mailing list