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

Reply via email to