Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 64235 invoked from network); 25 Jul 2005 19:26:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Jul 2005 19:26:07 -0000 Received: (qmail 52870 invoked by uid 500); 25 Jul 2005 19:26:00 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 52790 invoked by uid 500); 25 Jul 2005 19:26:00 -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 52759 invoked by uid 99); 25 Jul 2005 19:26:00 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jul 2005 12:26:00 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [84.96.21.10] (HELO mail.anyware-tech.com) (84.96.21.10) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jul 2005 12:25:54 -0700 Received: from localhost (localhost [127.0.0.1]) by mail.anyware-tech.com (Postfix) with ESMTP id 5EF961BABE for ; Mon, 25 Jul 2005 21:25:56 +0200 (CEST) Received: from mail.anyware-tech.com ([127.0.0.1]) by localhost (trinity [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06315-07 for ; Mon, 25 Jul 2005 21:25:54 +0200 (CEST) Received: from [192.168.0.100] (lns-vlq-39f-81-56-134-235.adsl.proxad.net [81.56.134.235]) by mail.anyware-tech.com (Postfix) with ESMTP id B0B141BABD for ; Mon, 25 Jul 2005 21:25:53 +0200 (CEST) Message-ID: <42E53CC4.90609@apache.org> Date: Mon, 25 Jul 2005 21:25:56 +0200 From: Sylvain Wallez User-Agent: Mozilla Thunderbird 1.0 (Macintosh/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Initial ECM <-> OSGi bridge checked in Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at anyware-tech.com X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi all, I committed an initial ECM <-> OSGi bridge in src/org/apache/cocoon/core/osgi. This code is untested and there are still some pending points, but I wanted to share it ASAP so that we can discuss these issues. What we have there is a ServiceManagerActivator that will create an ECM++. In this ECM, components that have exported="true" on their configuration are registered as OSGi services. Also, the parent of this ECM is an OSGiServiceManager that looks up non-local components as OSGi services. The ECM is given a LoggerManager that uses OSGi's LogService. We may consider using an optional LoggerManager service if present, as LogService has some limitations (no categories, and no isXxxEnabled methods). The main pending point is the avalon context for the created ECM. Cocoon places a lot of environment-related information there that I currently don't know where to get from. Maybe this should be obtained from the Cocoon core bundle? Sylvain -- Sylvain Wallez Anyware Technologies http://apache.org/~sylvain http://anyware-tech.com Apache Software Foundation Member Research & Technology Director