1 Reply Latest reply on Sep 26, 2002 7:38 AM by juha

    How to start/stop the jboss web service use rmi client

    lyang585

      i'm a newer to jboss and jmx. I want to test starting/stopping the jboss service. How? who can tell me? give me some code. thanks

        • 1. Re: How to start/stop the jboss web service use rmi client

          String serverName = InetAddress.getLocalHost().getHostName();
          String connectorName = "jmx:" +serverName+ ":rmi";
          RMIConnector server = (RMIConnector) new InitialContext().lookup(connectorName);
          server.invoke(someObjectName, "start", null, null);
          server.invoke(someObjectName, "stop", null, null);