Part of fix for #79 - moving deactivate() and notifyCommit() into finally block

This commit is contained in:
Rob Bygrave committed 2014-03-21 21:54:47 +13:00
1 parent 182e027521
commit 189e0a2ea9
1 file changed
+5 -3
@@ -593,12 +593,14 @@ public class JdbcTransaction implements SpiTransaction {
}
connection.commit();
}
// these will not throw an exception
deactivate();
notifyCommit();
} catch (Exception e) {
throw new RollbackException(e);
} finally {
// these will not throw an exception
deactivate();
notifyCommit();
}
}