@EventListener vs @TransactionalEventListener in Spring Boot: Testing When Events Arrive, Get Dropped, or Fire Twice on Rollback
A quick-reference comparison of @EventListener and @TransactionalEventListener in Spring Boot 3.x. Using @SpringBootTest, we check whether each phase is invoked on commit, on rollback, and outside a transaction. We also cover fallbackExecution, the problem of saves inside AFTER_COMMIT disappearing and how REQUIRES_NEW solves it (including the startup check added in Spring 6.1), how listeners behave when combined with @Async, and what causes events to be processed twice.