tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <>
Subject Re: How to close open connections after application stop?
Date Sun, 22 Feb 2009 19:10:22 GMT
Edoardo Panfili wrote:
> Using this code in destroy() method of a servlet marked as
> <load-on-startup>1</load-on-startup>

Yep - that is the sort of code you'd need. Using a context listener
would be a better solution as Tomcat is free to call destroy() on your
Servlet whenever it likes.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message