One not well known option of the shutdown command is the -e option.
If you issue the shutdown with the -e option: -e 10

This will shutdown JBoss with the signal code of 10.  When you issue this command the run script notice the "abnormal" exit code and restarts the app server.

This option is useful is you wrap your start/stop commands into scripts and you check the exit code in your script.


Related articles available on

JBoss MBeans POJO

JMX MBean services are the core building blocks of the JBoss Appl

How to a dump of JNDI tree with JMX console ?

#2 JBoss Howto. This is the recipe of the day

How to configure JBoss to bind to a different IP ?

  If you want to change the jboss.bind.address property use the 

How to shut down JBoss from remote ?

JBoss recipe of the day

How to create multiple instances of an Mbean?

  Supposing you need two instances of an MBean, let's say one fo

JBoss classloader issues

By default JBoss (prior to version 3.2) uses a flat class loading