cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <>
Subject [WARNING] Re: cvs commit: xml-cocoon/src/org/apache/cocoon/generation
Date Wed, 09 May 2001 17:18:43 GMT wrote:
> cziegeler    01/05/09 08:25:22
>   Modified:    src/org/apache/cocoon/generation Tag: xml-cocoon2
>   Log:
>   Made HTMLGenerator cacheable

>   -public class HTMLGenerator extends ComposerGenerator implements Poolable {
>   +public class HTMLGenerator extends ComposerGenerator implements Cacheable {


Do not confuse the difference between a Component that is Poolable and one that is Cacheable!
Sitemap Components are NOT Threadsafe, so they must either be Poolable or SingleThreaded.
Avalon Excalibur's Component Management Framework (which Cocoon incidently uses), defaults
to SingleThreaded (or FACTORY based creation) handling of objects, in effect becoming
SingleThreaded.  That means that for every request, a new HTMLGenerator is created--instead
of using a previously created one.

Cacheing is the process of checking if the requested resource (or file) has been changed,
and if not using the cached version.


If you remove the Poolable interface from HTMLGenerator, in essence you are saying
that you want to instantiate, set the Logger, configure, setup the sitemap component,
perform cache checks, generate, and decommission the HTMLGenerator for EACH request.
By pooling, we only setup the sitemap component, perform cache checks, and generate
for each request.

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

View raw message