stop tomcat web application gracefully shutdown all servlet connections

We want to create a backup of our db but need to know that all connections are closed behind our web application.

So if I send a stop to the specific web application in Tomcat, will it wait and gracefully shutdown all jobs/processes that are behind it (connections to the H2 DB) and also not accept any incoming request anymore ?


Tomcat does not terminate any connections that you may have open to your database: you will have to terminate these yourself. Try using a ServletContextListener to shut-down all your database connections when your webapp is shutting down.

Need Your Help

How do I send data to another screen after selection

c# javascript webforms

I have a page where If you click a link, e.g. 'search' it will open a search page and you can then select an item from the gridview to use in the previous (parent) page.

Installing Cairo on OS X Lion

python macos cairo pycairo

When I try to install Cairo on OS X Lion with Python 2.7.2 it just does not work, I can build and install it, but when it comes to import cairo in python it can't be found. I have tried the How to