cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoff Howard <coc...@leverageweb.com>
Subject Re: Antwort: Re: Antwort: Re: cvs commit: cocoon-2.1/src/java/org/apache/cocoon/components/source/impl PartSource.java PartSourceFactory.java
Date Tue, 28 Oct 2003 23:09:44 GMT
volker.schmitt@basf-it-services.com wrote:

> 
> 
>>volker.schmitt@basf-it-services.com wrote:
> 
>>>Hi Geoff,
>>>
>>>I think the reason is, that the PartSourceFactory isn't ThreadSafe. So
>>>every time you access a PartSourceFactory a new Component is created and
>>>the contextualize Method is called.
>>
>>Ah, I hadn't noticed this.  Still, does that explain why it's called
>>twice for every request?
> 
> Yes it does ;-)
> One lookup to the SourceFactory is done in
> Source source = SourceResolver.resolveURI(URI);
> and the second in
> SourceResolver.release(source);

Ah!

Geoff


Mime
View raw message