1 Reply Latest reply on Jul 19, 2002 11:29 PM by jmoring

    How to stop jboss

    yangjun

      Every friend:
      I want to stop jboss using a process,without
      ctrl+c to stop.But I don't know how to stop jboss using
      a process when writing java program.Can you give me any idea?Thanks a lot.My email is yang.jun@picsel.com or chummy_yang@hotmail.com

      thanks a lot

      yangjun

        • 1. Re: How to stop jboss

          This is from org.jboss.Shutdown

          try
          {

          String Command = "/InvokeAction//jboss%2Esystem%3Atype%3DServer/action=shutdown?action=shutdown"'

          string host = "localhost"; // Or whatever
          int port = 8082;

          URL url = new URL("http", host, port, Command);
          url.getContent();
          }
          catch (Exception ignore)
          {
          }