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.
Asked
Active
Viewed 646 times
0
-
1Why can't you just send a 500 or 404 from a listener in your web application if it is not fully initialized? – Cratylus Dec 15 '13 at 16:45
-
Thanks for the answer. Your solution works. `bindOnInit` works as well without a line of code. – Mohsen Dec 26 '13 at 07:41
1 Answers
1
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.

mindas
- 26,463
- 15
- 97
- 154