When I was speaking of GC, I meant my own stuff. It is more like flushing active stuff logging off inactive users, ..., just in case.
Anyway, the real problem is knowing when to stop. I see the "cancel" method for TIMERS, not sure of what the comparable thing is for a RUN method.
However, I could set a global variable that all threads could see (static shared
java bean) and then do the right thing.
How do you know that tomcat is shutting down so I can set this variable? Does it call some method of a "HttpServlet" (all of my threads are descendents of HttpServlet).
Thanks.