cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Unico Hommes" <>
Subject Divorse Cocoon creation from CocoonServlet
Date Wed, 18 Jun 2003 09:41:05 GMT
Hi all,

I'd like to override getCocoon method in CocoonServlet in order to allow
another subsystem than the servlet create and manage Cocoon. This so
that the same Cocoon instance can be shared among different clients
adapting different protocols. More specifically I want to be able to
have Cocoon hosted as a component in some Avalon container, have a
servlet running inside the container provide access to it over HTTP, and
have other clients (eg. a mailet) provide access to it over other
protocols (eg. SMTP). 

But as it is now CocoonServlet.getCocoon() has private access, hence
this request to make it protected instead.

My implementation would be a small wrapper around Cocoon so as to load
it in as a component in an Avalon container, and then make the servlet
Serviceable so as to be able to look it up from the provided
ServiceManager. If there is any interest in this I will provide a patch.


View raw message