Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 41358 invoked from network); 28 Oct 2003 18:40:57 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 28 Oct 2003 18:40:57 -0000 Received: (qmail 55699 invoked by uid 500); 28 Oct 2003 18:40:45 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 55674 invoked by uid 500); 28 Oct 2003 18:40:45 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 55654 invoked from network); 28 Oct 2003 18:40:44 -0000 Received: from unknown (HELO mailegw2.basf-ag.de) (141.6.2.84) by daedalus.apache.org with SMTP; 28 Oct 2003 18:40:44 -0000 Received: from mailigw2.fw.basf-ag.de (mailigw2.fw.basf-ag.de [10.8.129.50]) by mailegw2.basf-ag.de (8.12.9/8.12.9) with ESMTP id h9SIqIPs024442 for ; Tue, 28 Oct 2003 19:52:18 +0100 Received: from ntlu2221.rz-c007-j650.basf-ag.de (ntlu2221.rz-c007-j650.basf-ag.de [10.4.18.89]) by mailigw2.fw.basf-ag.de (8.12.9/8.12.9) with ESMTP id h9SIVkWw020107 for ; Tue, 28 Oct 2003 19:31:46 +0100 Subject: Antwort: Re: Antwort: Re: cvs commit: cocoon-2.1/src/java/org/apache/cocoon/components/source/impl PartSource.java PartSourceFactory.java To: dev@cocoon.apache.org X-Mailer: Lotus Notes Release 5.0.8 June 18, 2001 Message-ID: From: volker.schmitt@basf-it-services.com Date: Tue, 28 Oct 2003 19:40:45 +0100 X-MIMETrack: Serialize by Router on EUROPE-GW01/EUROPE/BASF(Release 5.0.9a |January 7, 2002) at 28.10.2003 19:40:48 MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N >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