[jboss-dev-forums] [JBoss AS7 Development] - JMX-based monitoring the jbossAS7 database connection pool

duan xz do-not-reply at jboss.com
Sun Oct 9 23:26:56 EDT 2011


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&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20111009/b57369aa/attachment.html 


More information about the jboss-dev-forums mailing list