db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sperlich, Tino" <t.sperl...@hpc-hamburg.de>
Subject How to set a pooled connection's timeout
Date Fri, 16 Jul 2004 11:31:08 GMT
Hi,

how may I set the query time-out for a connection,
i.e. the time it waits for locks in the DB before throwing
an exception?

My torque.properties is:

torque.database.btos.adapter=oracle
## Using commons-dbcp 
torque.dsfactory.btos.factory=org.apache.torque.dsfactory.SharedPoolDataSourceFactory
torque.dsfactory.btos.pool.maxActive=5
torque.dsfactory.btos.pool.testOnBorrow=true
torque.dsfactory.btos.pool.validationQuery=SELECT COUNT(*) FROM DUAL
torque.dsfactory.btos.connection.driver = oracle.jdbc.driver.OracleDriver
torque.dsfactory.btos.connection.url = jdbc:oracle:thin:@yyyyyy
torque.dsfactory.btos.connection.user = USER
torque.dsfactory.btos.connection.password = passwd

Thank you,

Tino Sperlich

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message