db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Göschl,Siegfried" <Siegfried.Goes...@drei.com>
Subject RE: How to set a pooled connection's timeout
Date Fri, 16 Jul 2004 11:43:27 GMT
Hi Tino,

I use torque.dsfactory.???.pool.maxWait=10000

Cheers,

Siegfried Goeschl

-----Original Message-----
From: Sperlich, Tino [mailto:t.sperlich@hpc-hamburg.de] 
Sent: Freitag, 16. Juli 2004 13:31
To: Apache Torque Users List
Subject: How to set a pooled connection's timeout


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


---------------------------------------------------------------------
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