* Fix for bug [1628515]

This commit is contained in:
Heng Sin Low 2007-01-05 15:56:14 +00:00
parent f477e3f81d
commit 0d5c83cf4d
1 changed files with 11 additions and 1 deletions

View File

@ -86,7 +86,17 @@ public abstract class SvrProcess implements ProcessCall
if (localTrx)
{
if (success)
m_trx.commit();
{
try
{
m_trx.commit(true);
} catch (SQLException e)
{
log.log(Level.SEVERE, "Commit failed.", e);
m_pi.addSummary("Commit Failed.");
m_pi.setError(true);
}
}
else
m_trx.rollback();
m_trx.close();