returning the version of the AR in Axon 3

Hi,

In Axon2, I could return the version of the AR after command execution using getUncommittedEventCount() + getLastCommittedEventSequenceNumber(). Does something similar exist in Axon 3 ?

Thanks,
Jorg

Hi Jorg,

I got that question some time ago and worked it out, please find attached some sample code.

Regards,

versionreturning.zip (6.6 KB)

Hi Jorg,

while Frans’ solution works, it’s not the most beautiful approach. I have created issue 543 (https://github.com/AxonFramework/AxonFramework/issues/543) to improve this.

Cheers,

Allard