Glassfish hooks

glassfish, hook

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`.

Problem

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

Original source