[wildfly-dev] Intercept server shutdown in Wildfly/EAP6.2

Marek Neumann marek.neumann at jestadigital.com
Thu Jan 30 03:50:28 EST 2014


Hi experts,

what is the appropriate way to intercept the server shutdown and execute 
some "before-stop" business logic?

I saw https://issues.jboss.org/browse/WFLY-407. Is my assumption correct 
that in EAP6.2 there is no common hook available for a soft server 
shutdown (kill) and a managed shutdown (e.g. via CLI)?

In EAP4.3 we just needed to listen for "org.jboss.system.server.stopped" 
notification sent by the shutdown hook.

Thanks a lot for the input,
Marek


More information about the wildfly-dev mailing list