I am trying to access a MBean in JBoss and following is the part of the stand alone java client:
------------
MBeanServerConnection server = (MBeanServerConnection)ctx.lookup("jmx/invoker/RMIAdaptor");
-
------------
I get following exception:
javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: org.jboss.jmx.adaptor.rmi.RMIAdaptor (no security manager: RMI class loader disabled)]
Am I missing anything? I have the standard jboss-service.xml and all the configurations as specified in the following link:
http://wiki.jboss.org/wiki/Wiki.jsp?page=HowDoIGetRemoteAccessToMyMBean
Any pointers on the cause of this problem would be highly appreciated. Thanks.
-Anirban.
Never mind. I found the problem. I have to have jbossall-client.jar in the class path.
-Anirban