So, I ended up with this code:
The trouble is it not working just like before - ClassNotFoundException :(
eflectionException: Class not found: com.percussion.jmx.test.SimpleListener
Cause: java.lang.ClassNotFoundException: com.percussion.jmx.test.SimpleListener
ClassLoader cl = this.getClass().getClassLoader();
Class clazz = Class.forName(className,
true,
this.getClass().getClassLoader());
Constructor handlerCtor = clazz.getConstructor(
getMethodSignature(this));
java.lang.Object beanInst =
handlerCtor.newInstance( getMethodArguments(this, server) );
obj = server.registerMBean(beanInst, getObjectName());
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3855440#3855440
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3855440
-------------------------------------------------------
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