"Diethelm Guallar, Gonzalo" wrote:
>
> The code for commitTransaction (in 2.1) is:
>
> public static void commitTransaction(DBConnection dbCon)
> throws Exception
> {
> if ( dbCon.getConnection().getMetaData().supportsTransactions() )
> {
> dbCon.commit();
> dbCon.setAutoCommit(true);
> }
>
> // Release the connection to the pool.
> TurbineDB.releaseConnection( dbCon );
> }
>
> Should this have a try/catch, to ensure the connection is being
> released even if the commit fails? Same thing for rollbackTransaction()?
>
yes it should.
john mcnally
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]