3 Replies Latest reply on Nov 10, 2004 6:44 AM by Gary Ratcliffe

    start & stop JBOSS remotely

    Abdul Raheem Newbie

      Hi ,

      Anyone know about starting the JBOSS remotely. either through console or through run command.

      If anyone have the answer for this.Please give the solution. It will be a great help.


        • 1. Re: start & stop JBOSS remotely
          Mike Finn Apprentice

          Stopping remotely from the command line can be done with the shutdown.sh script, by pointing to the right host and port. Or, using jmx-console, you can stop by invoking the shutdown method on the Server MBean.

          If you have *nix boxen, starting remotely can be done using the usual rsh, rexec, ssh, or any other command that can execute something on a remote box:

          rsh user@host /path/to/jboss/bin/run.sh

          Not sure how to do this in the Windows world.


          • 2. Re: start & stop JBOSS remotely
            Darran Lofthouse Master

            Once installed as a service on Windows XP you can use the 'Computer Management' console to remotely start and stop service.

            All version of Windows back to NT 4.0 that supported services have a mechanism to remotely start and stop services.

            • 3. Re: start & stop JBOSS remotely
              Gary Ratcliffe Newbie

              We use the Java Service Wrapper on Windows to run
              JBoss as a service (http://wrapper.tanukisoftware.org).

              This comes with a couple of MBeans you can deploy that allow you to interact with the owning Windows service. The MBean provides methods for re-starting the JBoss VM. These can be invoked from the JMX console or by the JMX invoker.

              The service wrapper is alos availabeon various UNIX platforms. I think the same functionality is then available.