-
As far as I understand it, there are two general ways for running transactions: // Option 1
...
JacisLocalTransaction tx = container.beginLocalTransaction();
// Do work
tx.commit();
...
// Option 2
container.withLocalTx(() -> {...}); If I'm not mistaken, using option 1 would not result in a rollback being executed if an exception occurs in my block of work, while a rollback would be attempted when using option 2 and exception occurs. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Again a good idea for an extension! See issue: #25 (comment) |
Beta Was this translation helpful? Give feedback.
Again a good idea for an extension! See issue: #25 (comment)