1 of 1 people found this helpful
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
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
should i use also jboss-cli.sh script?
I'm new to jboss. sorry for asking stupid questions
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