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 -- Carsten Ziegeler - Open Source Group, S&N AG http://www.s-und-n.de http://www.osoco.org/weblogs/rael/
