[jboss-user] [JBossWS] - Re: JBoss Shutdown hook

FrankTheTank do-not-reply at jboss.com
Fri Jun 20 03:51:29 EDT 2008


You have your concepts mixed up.

A shutdown hook is a (or multiple) task you can add to the system that will then be executed when the system recieves a shutdown from the OS.

So, lets say you have a connection somewhere and you want it to be closed gracefully when the system shuts down. You would create a task that does exactly this and register it with the shutdown hook.

System.exit() tells the application to abort and (I'm only guessing now) would then call the shutdown hook.

Someone correct me if I am wrong.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4159469#4159469

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4159469



More information about the jboss-user mailing list