I have a
thread running and need to stop it, because of undeploying web app.
What I've done is the like the code below:
but that is not actually work! (
test with profiler). When ear application is undeployed there were still some threads that are running, so I did the cancel flag like that
that is working good!
Why interrupt() is not working to stop the thread?