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





_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to