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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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: [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