cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tony" <>
Subject Turbine in my own code
Date Fri, 11 May 2001 20:05:15 GMT

Hi all,

Cocoon 1.8.2
I'm trying to use Turbine connection pooling in my own code(not using esql
taglib). But the example code given on the site dosen't work for me.
I'm using DB2 v7.0

Those lines:
import java.sql.*;              // JDBC - Database access
import org.apache.turbine.util.db.pool.*;
static DBBroker pool = (DBBroker) DBBroker.getInstance();       // Gives a
compile error without the type casting
gives me a
java.lang.ExceptionInInitializerError: java.lang.ClassCastException:

In my cocoon property:
# These are your database settings, look in the
# org.apache.turbine.util.db.pool.* package for more information.

Could someone give my a sample code that implement this turbine connection
pool ?

Kind regards,


Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message