You can provide your own impl of the Server interface.
e.g. extend the current ServerImpl and override shutdown method to hook in your
behavior.
See ServerLoader usage in Main and ServerImpl for more details.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=41317
Or, there is already a nice hook provided for you.
In the form of Bootstrap interface - see AbstractServerImpl.
| // Do the bootstraps in reverse order
| for (Bootstrap bootstrap : startedBootstraps)
| {
|
Thread.currentThread().setContextClassLoader
"svsubramanyam007" wrote : I want to get event when jboss is called for
shutdown.When i was walking through code i was not able to understand ..how to
get event when it is about to shutdown...can anyone help me in
understanding...whether it is possible to get event.
What's there to understand, i