4 Replies Latest reply on Sep 3, 2012 5:46 AM by gjerich

    stoping jboss in domain mode

    gjerich

      hi I'm new to jboss and would like to try jboss in diferent options.

      so my question is.. I run jboss as service in standalone mode using this command to stop:

      jboss-cli.sh --connect --command=:shutdown

      it work perfet 

      so how can i stop jboss as service in default domain mode?

      i look for shutdown command.

       

       

      thx in advance

        • 1. Re: stoping jboss in domain mode
          wdfink

          In domain mode there are many servers so you have to address the one you want to shutdown.

          You have to connect the domain controller (master) and send the commands here.

           

          a few examples if you start a domain of a fresh AS7:

           

          /host=master:shutdown     => stop the domain controller

          /host=slave:shutdown        => stop the slave host controller if you have such second instance running in the same domain

           

          /host=master/server-config=server-one:stop

          The given server instance (here server-one) is stopped, but not removed from config, so if you re-start the domain the server is up again

          1 of 1 people found this helpful
          • 2. Re: stoping jboss in domain mode
            gjerich

            thx,

            should i use also jboss-cli.sh script?

             

            I'm new to jboss. sorry for asking stupid questions

            • 3. Re: stoping jboss in domain mode
              wdfink

              I post only the commands.

              You might use the CLI without (--command) interactive to stop more than one instance or you replace ":shutdown" with my examples.

              Also you can write commands into a file and use the CLI script with --file=<filename>.

               

              Have a look into the documentation

              • 4. Re: stoping jboss in domain mode
                gjerich

                thx