Daniel Fagerstrom wrote:

Sylvain Wallez wrote:

Daniel Fagerstrom wrote:

<snip/>

The Cocoon servlet bundle
-------------------------

At last we need to have a Cocoon servlet bundle it looks up the Cocoon service and a HTTP service [10] (both Tomcat and Jetty implementations are available), embeds the Cocoon service in the Cocoon servlet and register it in the HTTP service. That is all.

For some uses it would probably be good to be able to package everything including the OSGi framework as a WAR that can be deplyoyed into a Servlet container. I haven't thought about how to acomplish that.

A CLI bundle would also be useful.


Requiring the availability of an HTTP service would be too restrictive, because most J2EE servers don't expose such a service. So we must still have a CocoonServlet that will start the micro-kernel.


Agree. Any ideas about how to achieve that?


Replace CocoonServlet.createCocoon by CocoonServlet.createCocoonKernel :-)

That method would instanciate the kernel and get the main Cocoon service.

Are there standaridized ways for create and start an OSGi micro kernel and for communicating with its services?


Not that I'm aware of, but it is acceptable for the bootstrap code to be dependent on the OSGi implementation used (a factory can be used too).

Sylvain

--
Sylvain Wallez                        Anyware Technologies
http://apache.org/~sylvain            http://anyware-tech.com
Apache Software Foundation Member     Research & Technology Director

Reply via email to