If you use Connection con = Torque.getConnection() to get the connection
then you should use Torque.closeConnection(con) to close it:
try
{
Connection con = Torque.getConnection();
/* use your connection here
...
...
*/
}
finally
{
Torque.closeConnection(con);
}
I don't think transactions has anything to do with this.
On Fri, 2004-08-27 at 04:21, [EMAIL PROTECTED] wrote:
> A bit of clarification please.
>
> One uses torque.getConnection to get a DB connection from the pool. How and
> when is it returned to the pool?
>
>
>
>
> ---------------------------------------------------------------------
> 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]