diff --git a/li.strolch.service/src/main/java/li/strolch/execution/policy/SimpleExecution.java b/li.strolch.service/src/main/java/li/strolch/execution/policy/SimpleExecution.java index a3b67ca0e..2bed7e0cc 100644 --- a/li.strolch.service/src/main/java/li/strolch/execution/policy/SimpleExecution.java +++ b/li.strolch.service/src/main/java/li/strolch/execution/policy/SimpleExecution.java @@ -127,6 +127,9 @@ public class SimpleExecution extends ExecutionPolicy { tx.lock(this.actionLoc.trim(3)); Action action = tx.findElement(this.actionLoc); consumer.accept(tx, action); + + if (!readOnly && tx.needsCommit()) + tx.commitOnClose(); } }); } catch (Exception e) {