Christopher Schultz-2 wrote:
> 
> So, multiple simultaneous AJAX requests are considered illegal?
> 

Exactly. All requests that modify the session state will be synchronized.


Christopher Schultz-2 wrote:
> 
> I would also recommend vetoing the /second/ request, rather than
> canceling the first request when a second one comes in.
> 

Well, once the requests are synchronized, I'd like to give users an ability
to change their mind and not wait until the first request finishes. That is
the main justification for interrupting threads. It will allow for a more
responsive interaction with the UI. There is an article with a good example
of request synchronization:
http://www.onjava.com/pub/a/onjava/2004/03/24/loadcontrol.html.

Hope it's clear now why I'm asking about interrupting threads - vetoing the
second request would make the user wait for the first one to complete.



 


-- 
View this message in context: 
http://www.nabble.com/Interrupting-tomcat-threads.-tf4113604.html#a11708046
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to