cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralph Goers <>
Subject Re: cocoon actions implements threadsafe
Date Sat, 03 Jun 2006 02:51:04 GMT
Why would an action be pooled?  Actions should, if at all possible, be 
ThreadSafe.  In this case there will only be one instance of the Action 
and multiple threads can execute it concurrently.  Since actions 
generally only have one method this should be easy to achieve.

Joerg Heinicke wrote:
> On 02.06.2006 20:28, Doug Herold wrote:
>> If I have an action that is SingleThreaded and I have 2 clients 
>> logged in (2
>> sessions).  Does one client have to wait on the other client's thread to
>> finish or is the SingleThreaded per session.
> You have to think of it as a pool. It is no problem as long as there 
> are no more concurrent requests than you have instances in the pool. 
> But it gets a bottleneck if there are more requests.
> Jörg
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message