db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rafal Markut" <rafal.mar...@mediawave.de>
Subject Re: Problem with DB connection
Date Fri, 14 Jul 2006 08:01:22 GMT
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" <tv@apache.org>
To: "Apache Torque Users List" <torque-user@db.apache.org>
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: 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