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.