Undeploying web application does not stop the running process
Veera Sundar
Greenhorn
Joined: Jun 08, 2007
Posts: 25
posted
0
Hello All,
Can anyone help me on this issue.
"I am running a web application, which will constantly monitor a ftp folder and whenever a new file comes on that folder, the application will download it. I have scheduled a thread to run every 15 mins to do this task. The problem, when I undeploy my web application from Tomcat, the scheduled process is not closing. It is still running."
I posted above in the Thread forum and got the following reply,
"If you are just spawning a new thread from inside your web application, Tomcat will not be able to interrupt it when the web app is undeployed. May be you can ask the question in Tomcat forum, they will be able to tell whether you can attach a hook to get a callback on webapp undeployment."
Any clue on how to destroy this scheduled process while undeploying the web application?
We have a forum on Threads and Synchronization. I'm going to move this topic over there for you since it's more about handling /interrupting threads than about Tomcat in particular.