public synchronized void commit (boolean report_heuristics) throws SystemException, NoTransaction, HeuristicMixed, HeuristicHazard, WrongTransaction
{
if (jtsLogger.logger.isDebugEnabled())
{
jtsLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC,
com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS, "TopLevelTransaction::commit ( "+report_heuristics+" ) called for "+_originalTransaction);
}
if (validTransaction())
{
try
{
super.commit(report_heuristics);
}
catch (WrongTransaction e1)
{
resumeTransaction();
throw e1;
}
catch (SystemException e2)
{
resumeTransaction();
throw e2;
}
resumeTransaction();
}
else
throw new WrongTransaction();
}