1 Reply Latest reply on Sep 28, 2004 1:02 PM by AJ Aw

    MBean 4.0.0 Invoking methods remotely

    AJ Aw Newbie

      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