Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 20965 invoked by uid 500); 29 Nov 2002 16:21:24 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 20953 invoked from network); 29 Nov 2002 16:21:23 -0000 Subject: [RT] Making Cocoon instance available to other components From: Bruno Dumon To: cocoon-dev@xml.apache.org Content-Type: text/plain Organization: Outerthought Message-Id: <1038586859.30947.345.camel@yum.ot> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.0 Date: 29 Nov 2002 17:21:00 +0100 Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, I'm thinking about making some Avalon component (managed by Cocoon's ECM) which would start its own thread. From that thread, I would like it to send requests to Cocoon (directly, not over HTTP). So I guess I would need access to the Cocoon instance (a protected variable in the CocoonServlet), and implement some appropriate environment classes. The problem in the above scenario is that there is currently, AFAIK, no possibility to get access to the Cocoon object. So I was thinking, since the Cocoon class itself is already an Avalon component, it could be made available via Composable (using a small parent component manager or an extra check in the lookup method of the CocoonComponentManager). So some quick yes/no questions: - Am I correct that there is indeed no way in which a seperate thread can send requests directly to cocoon? (I now there is the cocoon: protocol, but I thought that only works inside the request-handling thread, and I would need access to a SourceResolver for that) - Does anyone see conceptual problems with making the Cocoon object (or in fact the Processor interface) publicly available? Thanks for any comments about this, Bruno -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java & XML Competence Support Center bruno@outerthought.org --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org