Hello,

I added:
torque.defaults.pool.maxActive =        30
torque.defaults.pool.testOnBorrow =     true
torque.defaults.pool.validationQuery =  SELECT 1

torque.dsfactory.myapp.pool.maxActive =          30
torque.dsfactory.myapp.pool.testOnBorrow =       true
torque.dsfactory.myapp.pool.validationQuery =    SELECT 1

and it works perfeclty now :)

with best regards,
Rafal


----- Original Message ----- From: "Thomas Vandahl" <[EMAIL PROTECTED]>
To: "Apache Torque Users List" <[email protected]>
Sent: Thursday, July 13, 2006 8:48 PM
Subject: Re: Problem with DB connection


Rafal Markut wrote:
I'd very greateful for any help. I really don't know what can I do with it.

I recommend to use the JNDI data source lookup provided by the servlet container. See the Tomcat configuration instructions for more information.

The Torque configuration then reduces to
---
## Using JNDI
torque.dsfactory.default.factory=org.apache.torque.dsfactory.JndiDataSourceFactory
torque.dsfactory.default.jndi.path=java:/comp/env/jdbc/YourDataSourceName
torque.dsfactory.default.jndi.ttl=300000
---

You need to place the JDBC driver in the common/lib directory of Tomcat.

org.apache.turbine.services.security.db.DBUserManager.accountExists(DBUserManager.java:104)

One Hint: You may want to use TorqueUserManager in Turbine 2.3.2.

Bye, Thomas.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to