I was using the following code to get MBeanServer remotely
private MBeanServer getMBeanServer() throws NamingException {
String connectorName = "jmx/rmi/RMIAdaptor";
RMIAdaptor server = (RMIAdaptor)new InitialContext().lookup(connectorName);
MBeanServer mbServer = new RMIConnectorImpl(server);
return mbServer;
}
But this doesn't work in 4.0.0. Could you please tell me how to do this in 4.0.0?
Thanks,
-AJ
I found out the solution for it. For those who might run into same problem. Instead of getting the MBeanServer I just invoked the method call against the RMIAdaptor and it worked.
-AJ