cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <joerg.heini...@gmx.de>
Subject Re: components not as factory or pooled
Date Mon, 21 Nov 2005 20:28:22 GMT
On 21.11.2005 13:17, Iacturus wrote:

> As the NonThreadSafeComponent uses some API which cannot be made
> threadsafe, there can only be one method of NonThreadSafeComponent
> executed at one time. I cannot change this API and it really has to be
> used exclusively.

Why don't you make your NonThreadSafeComponent thread safe? In the 
easiest case just add "synchronized" to each method. To assure that it 
is a singleton you have to implement ThreadSafe then.

Jörg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message