db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tang" <yt...@online.sh.cn>
Subject Re: Getting/releasing a connection from Torque pool
Date Fri, 25 Jul 2003 02:11:37 GMT
Your are right. Torque.getConnection() gets connection from default pool.
Remember to call connection.close() method to return the connection to pool.

----- Original Message -----
From: "Chris Rafuse" <crafuse@cs.dal.ca>
To: <torque-user@db.apache.org>
Sent: Wednesday, July 23, 2003 10:37 PM
Subject: Getting/releasing a connection from Torque pool


> Hello all,
>
> I'm developing an application with Turbine and using Torque to model the
> database. However, I have no using the om table models to query.
>
> I am aquiring a connection from Torque and using JDBC to query the
> database.
>
> I would like to know the best way to aquire a connection from the Torque
> pool and how to return that connection when finished. Currently I am
> using Torque.getConnection() to aquire a connection. Is this right? How
> to I return it once I am done?
>
> Thanks,
>
>
>
> Chris
>
>
> ---------------------------------------------------------------------
> 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