cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carsten Ziegeler <>
Subject Re: M10N of xmldb and databases blocks
Date Wed, 15 Feb 2006 13:10:00 GMT
Jean-Baptiste Quenot schrieb:
> * Daniel Fagerstrom:
>> Why  does the  DB  driver need  to be  configured  as a  servlet
>> init-parameter in the first place,  couldn't it be configured in
>> some component instead?
> AFAICT  the required  database drivers  need to  be loaded  early.
> There  is a  mechanism in  the  CocoonServlet to  load classes  at
> initialization.   The  classes  to  load  are  determined  by  the
> 'load-class' init-param.
You can configure this as a property in some properties file stored in
WEB-INF/properties. So there shouldn't be the need for a patch to web.xml.
A property "org.apache.cocoon.classloader.load.classes.MYOWNKEY=MYCLASS"
should work.

In fact, there shouldn't be any patches to web.xml required, everything
can be configured through properties - apart of course from adding own
servlets, filters or listeners.


Carsten Ziegeler - Open Source Group, S&N AG

View raw message