Replies: 2 comments
-
The only code I found is that triggering by spring.modulith.republish-outstanding-events-on-restart property. It placed in org.springframework.modulith.events.support.PersistentApplicationEventMulticaster.afterSingletonsInstantiated()/invokeTargetListener() but second method is private and it is no way to use it. I think it would be nice if this functionality was public. In current state the only option that I see is to copy parts of library code to recreate listeners restart functionality. |
Beta Was this translation helpful? Give feedback.
-
I also found it strange in a way, re-queueing failed events could be via some exponential back-off enabled strategy triggered periodically or at least expose interface in the application code to do this. |
Beta Was this translation helpful? Give feedback.
-
According to the API docs, it seems to be possible to query the incomplete publications with DefaultEventPublicationRegistry's findIncompletePublications(). However, By default, all incomplete event publications are resubmitted at application startup.
I can't seem to find more information about triggering it manually or resubmitting incomplete publications and would appreciate any pointers.
Beta Was this translation helpful? Give feedback.
All reactions