Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] shutdown

Hi All,
Jetty uses a shutdownHook (Runtime.addShutdownHook) to perform a graceful shutdown. When JVM exits, all the LifeCycles are stopped.

The problem is that also java.util.logging.LogManager uses a shutdown hook to clean up logging. So, when the destroy method of a servlet is called during the jetty shutdown my logger is no more available (Logmanager.reset() is already been called).

Is it any way to perform a jetty shutdown before a System.exit() call and before the shutdownHooks are called by the JVM?

Changing the point of view. Which is the best way to perform some tasks when jetty is stopping but before JVM begins shutdown?

Thank you in advance.
bye
Andrea







Back to the top