_underdog
08-13-2002, 03:17 PM
I have a web application that has to perform an action that takes a long time (reloading a database table) and should be performed in a Thread. I spawned a new thread so that the user could continue on while the long action was being performed. This seems like it should work fine, but sometimes the server locks up and when I shut down the server it usually hangs up on shutdown. I am using Tomcat4.0. Is there a better way to handle this situation? How should threads be managed on a Server? Anyone tried to do something like this before?