Skip to content

Commit 85ce443

Browse files
yossispodrotbohm
authored andcommitted
GH-213 - Specify proper transactional propagation type in docs.
The default propagation type of @transactional is Propagation.REQUIRED. That, however would reuse the already running committed transaction which is not the correct behavior. Related ticket: #80.
1 parent 5dfffa2 commit 85ce443

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/docs/asciidoc/40-events.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ To run a transactional event listener in a transaction itself, it would need to
8787
class InventoryManagement {
8888
8989
@Async
90-
@Transactional
90+
@Transactional(propagation = Propagation.REQUIRES_NEW)
9191
@TransactionalEventListener
9292
void on(OrderCompleted event) { /* … */ }
9393
}

0 commit comments

Comments
 (0)