Hello all,
I am running tomcat 4.0.3 (on windows and linux) and using the com.oreilly.servlets class DaemonHttpServlet to provide socket based connections to legacy clients. I basically built right off the example in the O'Reilly servlets book and everything works fine. Fine, that is, until I try to shut down Tomcat. The threads attached to the Daemon servlet just don't go away. However if I hit them with the legacy client (causing it to get a connection exception on the socket) the servlet shuts down, although with some really nasty error messages in the tomcat log.
Has anyone else seen this behavior? Is there some simple "gotcha" that I missed? In my destroy() method I am calling super.destroy() and it is the very first thing I call in that method. Is there something else I should be doing or checking so that it shuts down cleanly? I can post more details, including code samples and log output if anyone thinks it will help.
Thanks,
Chuck
- Re: Problems with DaemonHttpServlet not shutting down Chuck Hirstius
- Re: Problems with DaemonHttpServlet not shutting down Mike McGuinness
- Re: Problems with DaemonHttpServlet not shutting down Samar Uppal
- Re: Problems with DaemonHttpServlet not shutting down Chuck Hirstius
- Re: Problems with DaemonHttpServlet not shutting down Chuck Hirstius