Jim Caserta <[EMAIL PROTECTED]> schrieb am 05.10.2005 19:50:54:

> One other thing, just to be sure, and I'll pass it
> along to all Torque users here..
>
> If anyone has:
> Torque.closeConnection(dbConn);
> Torque.shutdown();
>
> It should be replaced with:
> dbConn.close();
> dbConn = null;
>
> Correct?

Correct. Use Torque.shutdown() only when your application exits, not for
closing any connections. Torque.shutdown() closes all db pools it opens
(except the JNDI pools), so among other things, you wont be able to get any
new connections after Torque.shutdown().

    Thomas


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

Reply via email to