Thanks for all the responses.

 

I have another question about shutdown.

 

My app has several asynchronous threads which it spins off.  I need to
get them shut down cleanly.

 

These threads are not servlets and if I add a listener spec to web.xml
for them I get the startup message:
  

   2003-03-10 12:30:47 StandardContext[]: Error configuring application
listener of class com.foo.bar.RequestQMgr

java.lang.InstantiationException: com.foo.bar.RequestQMgr

.

 

Even tho I can have my servlet communicate with the thread, it seems
like Tomcat is busy shutting these down
even before my contextDestroyed() method finishes.

 

What is the proper way of shutting down these threads cleanly without
Tomcat killing them first?

 

  -- Frank

Reply via email to