Apache » Cocoon »

  Cocoon Databases Block
      1.0
   homepage

Cocoon Databases Block 1.0

Migration guide

Introduction

This document describes steps needed (or advised) to be made when upgrading to Cocoon Databases 1.0.x.

Datasource declaration

If you want to migrate your datasources to Spring beans but still need them in Avalon components (like SQLTransformer) take a look at Databases Bridge.

Loading of driver class

Thanks to new features of Cocoon 2.2 there is no need to patch web.xml file. In order to load driver class create file databases-drivers.properties in META-INF/cocoon/properties with following contents:

org.apache.cocoon.classloader.load.classes.hsqldb=org.hsqldb.jdbcDriver

And that's all! Cocoon will discover this file and load driver automatically.

Errors and Improvements? If you see any errors or potential improvements in this document please help us: View, Edit or comment on the latest development version (registration required).