returning the version of the AR in Axon 3

33 views
Skip to first unread message

Jorg Heymans

unread,
Mar 16, 2018, 3:36:16 AM3/16/18
to Axon Framework Users
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

Frans van Buul

unread,
Mar 16, 2018, 3:40:02 AM3/16/18
to axonfr...@googlegroups.com
Hi Jorg,

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

Regards,

Frans van Buul
AxonIQ
+31 6 5068 2984

 

--
You received this message because you are subscribed to the Google Groups "Axon Framework Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to axonframework+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

versionreturning.zip
Message has been deleted

Allard Buijze

unread,
Mar 16, 2018, 4:32:59 AM3/16/18
to axonfr...@googlegroups.com
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

On Fri, 16 Mar 2018 at 08:40 Frans van Buul <frans....@axoniq.io> wrote:
Hi Jorg,

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

Regards,

Frans van Buul
AxonIQ
+31 6 5068 2984

 
On Fri, Mar 16, 2018 at 8:36 AM, Jorg Heymans <jorg.h...@gmail.com> wrote:
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

--
You received this message because you are subscribed to the Google Groups "Axon Framework Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to axonframewor...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Axon Framework Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to axonframewor...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--
Allard Buijze
CTO

E: allard...@axoniq.io
T: +31 6 34 73 99 89
Reply all
Reply to author
Forward
0 new messages