Hi,
I'm trying to initialize Torque with the Jdbc2PoolDataSourceFactory. Therefore I made 
the following changes to my torque.properties File:


-- ConnectionPool Settings --
torque.database.default=ZEITERFASSUNG

torque.database.ZEITERFASSUNG.adapter = mysql

torque.dsfactory.ZEITERFASSUNG.factory = 
org.apache.torque.dsfactory.Jdbc2PoolDataSourceFactory

torque.dsfactory.ZEITERFASSUNG.pool.defaultMaxActive = 20
torque.dsfactory.ZEITERFASSUNG.pool.testOnBorrow = true
torque.dsfactory.ZEITERFASSUNG.pool.validationQuery = SELECT 1

torque.dsfactory.ZEITERFASSUNG.connection.driver = org.gjt.mm.mysql.Driver
torque.dsfactory.ZEITERFASSUNG.connection.url = 
jdbc:mysql://localhost:3306/ZEITERFASSUNG?useUnicode=true&characterEncoding=ISO-8859-1
torque.dsfactory.ZEITERFASSUNG.connection.user = user
torque.dsfactory.ZEITERFASSUNG.connection.password = password

torque.idbroker.cleverquantity=true


All I get when I try to make a query is the message that my connection object is null. 

I don't have any other settings somewhere (jndi or anything else) as I can't see any 
requirements for that in the jdbc2pool-how-to.

can anybody help?

Ralf

used tools:

torque3.0b1
tomcat4.0.4
struts1.1b

Reply via email to