Search code examples
tomcatstartuphttpconnection

How to reject all HTTP connections until a Tomcat webapp is fully started


I want Tomcat to reject (and close) all HTTP connections, while apps are not started up completely. By default Tomcat make connections wait during an app startup.


Solution

  • bindOnInit parameter on the connector might help (setting the value to false). See http://tomcat.apache.org/tomcat-7.0-doc/config/http.html for more details.