Thanks for ur reply
Following war working properly http://simple.souther.us/not-so-simple.html
Look for "Long Running Process"
When iam closing browser before 30minutes the session is getting invalidated but thread is running upto 30sec.
for that i wrote stopProcess method in ProceessSimulator class
public void stopProcess()
Thread t1= Thread.currentThread();
System.out.println("This in stop process method");
When i close browser where sholuld i check seeeion id in servlet and where sholuld i invoke a method to stop thread ?
Aim is to stop the thread when i close browser.Means if browser closed at 15sec even thread should get stop at same time.