Let me try to explain this better,
The problem seems to be that Tomcat is shutting down the asynchronous threads BEFORE I can cleanly tell them to shutdown (from my servlet contextDestroyed() method). I tried getting control with finalize() in the thread instance, but this didn't seem to get called. In general there should be some way to cleanly shutdown the entire app before Tomcat starts destructing threads and instances. I cannot put a web.xml entry for the thread since it is not a servlet. Any suggestions? -- Frank