We do pretty much what you said, except with a little tweak.
If multiple requests come in for the same session, all but the first request wait (literally: Object.wait()) until the first one has finished.
We also keep a track of which was the last thread to come in the door.
When the request being processed finishes, only the thread that was the last in the door gets processed.
All other requests just get ended with no content (and hence minimal processor usage), because there's no browser waiting for the response anyway.
Of course, this won't work if you want to support multiple browser windows attaching to one session.
One could keep apart requests not only by user, but also by URL. This should allow different windows, if they contain different pages.
I wonder if it would be possible to write a filter that would implement this functionality transparently to the JSP pages/servlets.
It's not only the users getting impatient, there is also a lot of (Windows) users that do double clicks on every web link (effectively doubling server load).
Regards,
Andreas
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
