duan xz [
http://community.jboss.org/people/duanxz] created the discussion
"JMX-based monitoring the jbossAS7 database connection pool"
To view the discussion, visit:
http://community.jboss.org/message/630795#630795
--------------------------------------------------------------
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
[
http://community.jboss.org/message/630795#630795]
Start a new discussion in JBoss AS7 Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]