This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Servlets and the fly likes test client existence to terminate internal operations Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "test client existence to terminate internal operations" Watch "test client existence to terminate internal operations" New topic
Author

test client existence to terminate internal operations

Cyril Lavy
Greenhorn

Joined: Nov 18, 2003
Posts: 7
Hello,
I'm running a servlet which does some internal operations using much resources when a request is send. I have two problems: first, when someone clicks several times it sends several requests which can make the system busy for a long time, and second, if the session is closed (browser closed) or the operation is aborted on the client side, the servlet will continue to perform actions and sometimes block other users. So how can I :
- block several clicks from the same client.
- test client's existence.
- How can I declare the classes used in the operations so they can be heavily interrupted by the servlet if client's session is closed... Eternal Thanks to persons who can offer some help!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56543
    
  14

This is a dupe of another topic (please don't post the same question twice). Please conduct any disucssion here.
bear


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: test client existence to terminate internal operations
 
Similar Threads
Session Invalidation and Timeout !
interrupt operations if session closed
using stateful beans (Java EE5) so that new instances become created in the right way
when a session is invalidated ?
Performing IO from Session Bean