Oliver Drotbohm opened SPR-15441 and commented

It would be cool if there was an API that allowed accessing application event listeners by different criterias. One obvious candidate would be transactional event listeners but also being able to find and them by a concrete method reference would be useful.

This came up in the development of a prototype for persisted domain events that make sure event publications for transactional event listeners don't get lost in case of an application crash after the transaction has completed and before the event has been processed successfully.


Issue Links: - #19689 Annotation-based event listener does not receive event published in @PostConstruct - #21411 Allow registration of application event listeners in a functional way

Comment From: spring-projects-issues

Juergen Hoeller commented

Let's put this into the 5.1 backlog for the time being. I might refactor a few things for 5.0 still... but in terms of a public story, this would be a great theme for 5.1.

Comment From: spring-projects-issues

Stéphane Nicoll commented

I like that as well. Maybe something that we could couple with our reactive story somehow?