Skip to content

Commit c49850f

Browse files
authored
reverted accidental change (#18361)
1 parent f329e95 commit c49850f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-core/src/main/java/com/baeldung/springevents/synchronous/AnnotationDrivenEventListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public void handleSuccessful(final GenericSpringEvent<String> event) {
2626
hitSuccessfulEventHandler = true;
2727
}
2828

29-
@TransactionalEventListener(phase = TransactionPhase.BEFORE_COMMIT)
29+
@TransactionalEventListener(phase = TransactionPhase.BEFORE_COMMIT, fallbackExecution = true)
3030
public void handleCustom(final CustomSpringEvent event) {
3131
System.out.println("Handling event inside a transaction BEFORE COMMIT.");
3232
hitCustomEventHandler = true;

0 commit comments

Comments
 (0)