tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Calum <>
Subject Re: how to correct stop a thread and avoid leaks
Date Thu, 09 Jun 2011 17:44:39 GMT
On 9 June 2011 09:11, Pid <> wrote:
> Eh?  Why would you need to put Tomcat specific dependencies in a spec
> compliant Servlet container?  The above is simply not true.
> The OP use of a ServletContextListener is perfectly valid, (even if the
> rest of the code is a little odd).

Is it better to have a separate class that implements the Listener,
and sets running = false in the Threads, or just have the thread class
implement the listener itself?

Or are there not really any pros or cons either way?

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

View raw message