diff --git a/src/main/java/com/avaje/ebeaninternal/server/transaction/JdbcTransaction.java b/src/main/java/com/avaje/ebeaninternal/server/transaction/JdbcTransaction.java index f066668f4..9d912e11d 100644 --- a/src/main/java/com/avaje/ebeaninternal/server/transaction/JdbcTransaction.java +++ b/src/main/java/com/avaje/ebeaninternal/server/transaction/JdbcTransaction.java @@ -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(); } }