Re: fifo queue

2008-01-07 Thread Mikolaj Rydzewski
Marco Caldirola wrote: Hi, I'm trying to do a performance test and I must generate a fifo queue in order to verify my resource allocation policies.I have implement ed the synchronized method and set maxThread=1 in server.xml file. It seems it is working. Could you please send me reference on

Re: fifo queue

2008-01-07 Thread Marco Caldirola
nks a lot for you support. Marco - Messaggio originale - Da: Mikolaj Rydzewski <[EMAIL PROTECTED]> A: Tomcat Users List Inviato: Venerdì 4 gennaio 2008, 12:47:15 Oggetto: Re: fifo queue Marco Caldirola wrote: > I need to create on my tomcat 6.0 server a fifo queue of my http

Re: fifo queue

2008-01-04 Thread Mikolaj Rydzewski
Marco Caldirola wrote: 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? Change your idea. Do you really need such a nasty hack? Use command pattern. Process requests as usual, create Command objects

Re: fifo queue

2008-01-04 Thread David Delbecq
Reduce the max http request threads to 1. However, 1) the admin request will be queued like user ones 2) it's not a fifo, the socket that are served, one at a time, by http thread are, i think, in the same order as the thread get notified by jvm En l'instant précis du 04/01/08 12:12, Marco Caldir

Re: fifo queue

2008-01-04 Thread ben short
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,