Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

cancelling request when browser is closed

843841Jun 13 2005 — edited Jun 14 2005
I have a web appliaction with the server running as a servlet using Tomcat. The client is a applet or javascript-html based thin client. When I launch a request to the server sometimes it takes too long to process because the server spawns new threads and connects to databases, gets data and processes them before sending the response back. Now if the user closes the browser on the client while the processing is taking place on the server how do I interrupt all the threads on the server so that they stop processing and releases system resources ?

Thanks in advance
ujj
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 12 2005
Added on Jun 13 2005
3 comments
475 views