We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f329e95 commit c49850fCopy full SHA for c49850f
spring-core/src/main/java/com/baeldung/springevents/synchronous/AnnotationDrivenEventListener.java
@@ -26,7 +26,7 @@ public void handleSuccessful(final GenericSpringEvent<String> event) {
26
hitSuccessfulEventHandler = true;
27
}
28
29
- @TransactionalEventListener(phase = TransactionPhase.BEFORE_COMMIT)
+ @TransactionalEventListener(phase = TransactionPhase.BEFORE_COMMIT, fallbackExecution = true)
30
public void handleCustom(final CustomSpringEvent event) {
31
System.out.println("Handling event inside a transaction BEFORE COMMIT.");
32
hitCustomEventHandler = true;
0 commit comments