cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From volker.schm...@basf-it-services.com
Subject 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 18:40:45 GMT



>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);

Volker

<snip />



Mime
View raw message