JBoss Community

JMX-based monitoring the jbossAS7 database connection pool

created by duan xz in JBoss AS7 Development - View the full discussion

in jboss-as-web-7.0.2.Final

code:
RMIAdaptor server = null;
server = (RMIAdaptor) ic.lookup("jmx/rmi/RMIAdaptor");
ObjectName name=new ObjectName("jboss:service=JNDIView");
Object result = server.invoke(name, "listXML", null, null);
....


Error info:javax.naming.NameNotFoundException: jmx/rmi/RMIAdaptor -- service jboss.naming.context.java.jmx.rmi.RMIAdaptor

 

PS:This code can run on earlier versions of the jboss, but in the jboss-as-web-7.0.2.Final it appears this error.

Any help with this will be greatly appreciated.

Reply to this message by going to Community

Start a new discussion in JBoss AS7 Development at Community