From dev-return-98690-apmail-cocoon-dev-archive=cocoon.apache.org@cocoon.apache.org Mon Mar 17 15:12:36 2008 Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 16417 invoked from network); 17 Mar 2008 15:12:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Mar 2008 15:12:35 -0000 Received: (qmail 70763 invoked by uid 500); 17 Mar 2008 15:12:32 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 70689 invoked by uid 500); 17 Mar 2008 15:12:31 -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 List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 70678 invoked by uid 99); 17 Mar 2008 15:12:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Mar 2008 08:12:31 -0700 X-ASF-Spam-Status: No, hits=1.0 required=10.0 tests=RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of grek@tuffmail.com designates 216.86.168.178 as permitted sender) Received: from [216.86.168.178] (HELO mxout-03.mxes.net) (216.86.168.178) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Mar 2008 15:11:53 +0000 Received: from [192.168.0.126] (unknown [212.76.37.214]) by smtp.mxes.net (Postfix) with ESMTP id 6F73523E3FF for ; Mon, 17 Mar 2008 11:12:03 -0400 (EDT) Message-ID: <47DE8B16.3070400@tuffmail.com> Date: Mon, 17 Mar 2008 16:15:34 +0100 From: Grzegorz Kossakowski User-Agent: Thunderbird 2.0.0.12 (X11/20080226) MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Embedding Cocoon (was: Re: [GSoC_2008] Project ideas) References: <47D94E52.4010807@apache.org> <47DADC6F.8020106@tuffmail.com> <47DCFF72.9030203@apache.org> <47DD0210.8060101@tuffmail.com> <47DE55CC.7050206@apache.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Vadim Gritsenko pisze: > > External HTTP crawler is not a replacement for cocoon embedding APIs > (which what our CLI was, allows you to embed cocoon and use it from > within another java application, together with simple main() wrapper). I believe that similar effect could be achieved by application imitating DispatcherServlet from SSF. If application wants to embed Cocoon it should do basic initialization that DispatcherServlet does and call SitemapServlet.forward() method. Of course that means the application would need to implement few classes imitating ServletContext, Request, Respone but I don't it's that hard... WDYT? -- Grzegorz Kossakowski