I just did some tests with our app.
As I read the reference guide, when using AxonServer, events published by the event gateway (or by an Aggregate) should only be sent upon commit of the surrounding transaction. In case of annotation based transaction demarcation that would be, if no exception occurs.
We’re using Axon/AxonServer 4.2 together with MongoDB (4+, which includes transaction management) as tokenstore.
Are there any limitations with regard to transactions when I use this configuration? Does somebody have a sample config? Maybe I’m missing something…
Thanks a lot!