0 Replies Latest reply on Jun 10, 2003 11:06 AM by anis_zouaoui

    rmi connector

    anis_zouaoui Newbie

      i'm using rmiconnector to connect to jboss's mbeanserver, i succed to have a remotembean server, and i can display for example the mbeancount but i failed to have MBean set

      so can some one help me ?? (i'm new to jmx technologie)
      this is the source code i'm using

      String serverName = InetAddress.getLocalHost().getHostName();
      Object lObject = null;
      try {
      lObject = ctx.lookup( "jmx:" + serverName + ":rmi" );
      catch (NamingException ex) {
      ex.printStackTrace() ;

      RemoteMBeanServer connectorJboss = new RMIConnectorImpl( (RMIAdaptor) lObject);
      Set mBeanSet= connectorJboss.queryMBeans(null,null);
      // here is an exception because my mBeanSet is null