Tim Funk wrote:
Why is a kill done instead of a System.exit()?
System.exit() is a cleaner solution, but there are plenty of cases where tomcat won't shut down at all with this solution, so a kill is needed (either as suggested, or manually/externally). For example, I had a bug in a webapp a while ago (the servlet was marked as load-on-startup, so it was starting up before tomcat was fully running) where the servlet was hanging, so tomcat never fully started up. As a result, it wasn't listening on the shutdown socket, so anything requiring in-process intervention such as System.exit() would fail.

Perhaps have both?




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to