[jboss-as7-dev] Notification of shutdown commencing

Brian Stansberry brian.stansberry at redhat.com
Fri Apr 6 15:55:52 EDT 2012


I can't figure out a way to produce a notification of an impending 
server shutdown if a user does a soft kill of the server process.

It's easy enough if shutdown is initiated by a management op; the op 
handler can trigger the notification. But a soft kill triggers a 
shutdown hook registered by the MSC ServiceContainer, and once that 
starts, services start stopping semi-randomly and its too late to notify 
anyone that that is going to start happening.

The MSC shutdown stuff isn't exposed, so there's no way to tie into 
that. Adding another shutdown hook doesn't help as there's no 
predictable order of execution.

-- 
Brian Stansberry
Principal Software Engineer
JBoss by Red Hat


More information about the jboss-as7-dev mailing list