Skip to main content



      Home
Home » Newcomers » Newcomers » Shutdown hook for Jetty 9(Is there a hook to call a function after jetty has completed its shutdown)
Shutdown hook for Jetty 9 [message #1445502] Wed, 15 October 2014 10:26 Go to next message
Eclipse UserFriend
Can someone say how I might implement a function that gets called when jetty 9 has shutdown. I cannot use the context destroy function because this gets called if the webapp s being refreshed. I need a function that gets called just before jetty shuts down completely.
Re: Shutdown hook for Jetty 9 [message #1445573 is a reply to message #1445502] Wed, 15 October 2014 12:24 Go to previous messageGo to next message
Eclipse UserFriend
Use a lower level shutdown hook? http://docs.oracle.com/javase/7/docs/api/java/lang/Runtime.html#addShutdownHook(java.lang.Thread)
Re: Shutdown hook for Jetty 9 [message #1445716 is a reply to message #1445573] Wed, 15 October 2014 17:08 Go to previous messageGo to next message
Eclipse UserFriend
My problem is that these shutdown hooks execute before the webapp contexts are destroyed and I need to have all the contexts destroyed before my functions runs. Also In the case where jetty is refreshing a context I don't want my code to execute, only when jetty is about to terminate and al the contexts are destroyed.
Re: Shutdown hook for Jetty 9 [message #1446164 is a reply to message #1445716] Thu, 16 October 2014 08:53 Go to previous message
Eclipse UserFriend
The Jetty project uses mailing lists for their community, not these forums. Here's the jetty-users list: https://dev.eclipse.org/mailman/listinfo/jetty-users
Previous Topic:Eclipse cannot find google 4.4 plugin
Next Topic:Eclipse Write Error
Goto Forum:
  


Current Time: Tue Jul 08 03:37:33 EDT 2025

Powered by FUDForum. Page generated in 0.10498 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top