Hi, I’m trying to iterate all events from a certain type that are available in the eventstore. In a Spring CommandLineRunner, I do:
val events = eventStore.openStream(null)
while (events.hasNextAvailable()) {
val eventMessage = events.nextAvailable()
When I debug, there are events, when I do not debug, no events. So, I thought: the eventstore is not initialized yet, so I waited for the ContextRefreshedEvent. However, the eventstore still has no events when not debugging.
Any tips, anyone?
Regards, R. Olsthoorn.