Re: how to correct stop a thread and avoid leaks

2011-06-09 Thread Pid
On 09/06/2011 18:44, Calum wrote: > 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

Re: how to correct stop a thread and avoid leaks

2011-06-09 Thread Calum
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 h

Re: how to correct stop a thread and avoid leaks

2011-06-09 Thread Pid
On 07/06/2011 16:33, Bill Miller wrote: > If you want to work with threads in tomcat you need to know about the Tomcat > org.apache.catalina.LifecycleListener interface. Eh? Why would you need to put Tomcat specific dependencies in a spec compliant Servlet container? The above is simply not true

Re: how to correct stop a thread and avoid leaks

2011-06-07 Thread alexis
the LifecycleEvent types in case you have use for the other options. > > Bill > > -----Original Message----- > From: alexis [mailto:alz...@gmail.com] > Sent: June 6, 2011 8:10 PM > To: Tomcat Users List > Subject: how to correct stop a thread and avoid leaks > > Hell

RE: how to correct stop a thread and avoid leaks

2011-06-07 Thread Bill Miller
all of the LifecycleEvent types in case you have use for the other options. Bill -Original Message- From: alexis [mailto:alz...@gmail.com] Sent: June 6, 2011 8:10 PM To: Tomcat Users List Subject: how to correct stop a thread and avoid leaks Hello, im running an app that has a class that

how to correct stop a thread and avoid leaks

2011-06-06 Thread alexis
Hello, im running an app that has a class that implements ServletContextListener (Server class), on that class i create a thread of Listener (that implements Runnable) Listener starts a ServerSocket that listen on a port, and in a periodically manner, this app receives a string, parses the stri