Glassfish hooks

glassfishhook

Does Glassfish has any hooks for start and shutdown and for domain start/stop ?

Best Solution

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.