You need to use the classloader that loaded the 1st MBean, e.g:
| Object mybean = Class.forName("com.percussion.jmx.test.SimpleListener",
true, this.getClass().getClassLoader()).newInstance();
|
| server.registerMBean(mybean, "mydomain:name=myname");
|
There is also the createMBean() that takes the ObjectName of a classloader, but
I'm not sure how to map the context thread classloader to the ObjectName under
which it is registered.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3855431#3855431
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3855431
-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user