D开发者_高级运维oes Glassfish has any hooks for start and shutdown and for domain start/stop ?
Yes, these are called Lifecycle Listener and are Glassfish-specific.
Events that are supported are: INIT_EVENT, STARTUP_EVENT, READY_EVENT, SHUTDOWN_EVENT, or TERMINATION_EVENT
.
For anyone else looking at this now, this may also help: http://blogs.oracle.com/alexismp/entry/startup_and_shutdown_events_with
精彩评论