[prev in list] [next in list] [prev in thread] [next in thread] 

List:       turbine-torque-user
Subject:    Re: org.apache.torque.TorqueException: java.lang.InstantiationException
From:       Thomas Fischer <fischer () seitenbau ! net>
Date:       2005-10-06 8:07:50
Message-ID: OF61A309D4.9BF6C106-ONC1257092.002C58C6-C1257092.002CAC89 () seitenbau ! net
[Download RAW message or body]





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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic