Undeploying web application does not stop the running process
Joined: Jun 08, 2007
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?