tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ben short" <jamin.sh...@gmail.com>
Subject Re: fifo queue
Date Fri, 04 Jan 2008 11:16:54 GMT
Add something like the following to your servlet

synchronized ( someObject )
               {
               do work
               }

But you'll need to be careful, as requests will block and clients
might time out if you are performing lengthy operations inside the
synchronized block.

On Jan 4, 2008 11:12 AM, Marco Caldirola <caldi.news@yahoo.it> wrote:
> Hi,
> I need to create on my tomcat 6.0 server a fifo queue of my http requests.
> I want to process a single request at a time.
> Do you have an idea?
> Thanks in advance.
> Marco
>
>
>
>
>       ___________________________________
> L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html

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


Mime
View raw message