[jboss-as7-dev] Notification of shutdown commencing

Jason Greene jgreene at redhat.com
Sat Apr 7 19:11:44 EDT 2012


Sounds good

Sent from my iPhone

On Apr 7, 2012, at 12:10 PM, "David M. Lloyd" <david.lloyd at redhat.com> wrote:

> On 04/06/2012 02:55 PM, Brian Stansberry wrote:
>> 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.
> 
> Originally I had assumed (wrongly) at some level that AS 7 would be 
> completely service-oriented as 5 and 6 were.  The reality is that AS 7 
> is oriented around management, not services.  I still think that a 
> service-oriented VM is a valid use case for MSC, however I think that 
> this is not the case in AS 7.  So I think I should introduce an option 
> to disable the shutdown hook in MSC, and instead we should create one 
> for AS 7 which executes a shutdown management operation.
> 
> WDYT?
> -- 
> - DML
> _______________________________________________
> jboss-as7-dev mailing list
> jboss-as7-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev


More information about the jboss-as7-dev mailing list