I am using " ./standalone.sh -c standalone-full.xml " to start JBOSS. What is the cleanest way to restart jboss in this case? Any scripts that you can share?
Asked
Active
Viewed 4.4k times
2 Answers
31
@Petr Mensik's solution works well if you need to shutdown the server. But if you need to restart it in a single operation you can use:
jboss-cli.sh -c ":shutdown(restart=true)"
Thanks to these excellent JBoss notes.
29
You have to use CLI console. To restart, type
bin/jboss-cli.sh --connect --command=:reload
To shutdown, type
bin/jboss-cli.sh --connect --command=:shutdown

Petr Mensik
- 26,874
- 17
- 90
- 115
-
5You can also use `bin/jboss-cli.sh --connect --command=":reload"` if you just want to restart the server. – James R. Perkins Jan 25 '13 at 00:42
-
@JamesR.Perkins does the "reload" wait for the pending transactions to finish before reloading? – Saqib Ali Jan 28 '13 at 16:13
-
My guess would be yes, but to be honest I'm not sure. – James R. Perkins Jan 28 '13 at 16:14
-
@JamesR.Perkins I tried ":reload" but I get: Communication error: java.util.concurrent.ExecutionException: Operation failed – Saqib Ali Jan 28 '13 at 16:57
-
I've seen that from time to time and I think it's a known issue that looks like it's fixed upstream. https://issues.jboss.org/browse/AS7-1833 – James R. Perkins Jan 28 '13 at 21:15