I have a question about the transaction management when using the default Axon configuration with Spring Boot.
I can see that the SpringTransactionManager is correctly attached to the Command Bus, so far so good.
So now, I have some events handlers on the read side configured by default as Subscribing processors.
For testing purpose, I’m throwing a Runtime exception in one of the Event Handler, expecting the transaction to be rolled back ( no event and no other entities handled on the read model to be persisted).
Instead, I get a message saying that the event handler failed and “Continuing processing with next listener” but the event is correctly persisted to the event store ( and all other event handlers successfully process the event).
Could you please enlighten me about the default strategy ? And how could we fine tune this configuration ?
As far as I remember, in Axon 2, the default behavior was the one described above, but I might be wrong.