Add core-events module: @EventListener, @TransactionalEventListener phases and async listeners on Boot 4.1
Thirteen captured transcripts: a listener is a blocking method call, ordering and chaining, SpEL conditions, generic-event erasure, every transaction phase on commit and rollback, what an AFTER_COMMIT listener can write, which exceptions reach the publisher, async listeners on platform and virtual threads, and the annotations behind Spring Modulith's @ApplicationModuleListener. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Uu7q8vPeREyT4218EJPzz1
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
# Which listener's exception reaches the caller, and whether the order row survives
|
||||
|
||||
|
||||
--- plain listener throws ---
|
||||
caller saw: IllegalStateException: plain listener failed
|
||||
order row survived: false
|
||||
|
||||
--- beforeCommit listener throws ---
|
||||
caller saw: IllegalStateException: BEFORE_COMMIT listener failed
|
||||
order row survived: false
|
||||
|
||||
--- afterCommit listener throws ---
|
||||
caller saw: nothing
|
||||
order row survived: true
|
||||
logged: TransactionSynchronization.afterCompletion threw exception
|
||||
logged: java.lang.IllegalStateException: AFTER_COMMIT listener failed
|
||||
Reference in New Issue
Block a user