db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Fischer <fisc...@seitenbau.net>
Subject Re: org.apache.torque.TorqueException: java.lang.InstantiationException
Date Thu, 06 Oct 2005 08:07:50 GMT




Jim Caserta <smoothie_jc@yahoo.com> 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: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message