cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <>
Subject Re: C2 thread savety
Date Sun, 23 Jul 2000 18:32:38 GMT
On Sun, 23 Jul 2000, Giacomo Pati wrote:

> I've encountered a problem concerning thread savetyness. The old C2
> sitemap engine instantiated a component object (generator, serializer,
> etc.) for every request. The new sitemap engine does not. Now we should
> decide if a sitemap component should be thread save, or not or if we
> could have a mixture of both (indicated in the sitemap as an attribute
> like thread-save="yes").

the mixture idea strikes me as a good one. thread-safe components could
exist as singletons, while non-thread-safe components could either be
created on the fly for each request or pooled and reused.

- donald

View raw message