JbdcEventStore in Axon 3

31 views
Skip to first unread message

Jorg Heymans

unread,
Mar 16, 2018, 8:59:24 AM3/16/18
to Axon Framework Users
Hi,

In Axon2 we were using 

JdbcEventStore.readEvents(String type, Object identifier, long firstSequenceNumber, long lastSequenceNumber)

to fetch the state of an AR up until a given point in time. Is there an alternative for this in Axon 3, searching around the code in core I could not find anything equally obvious. Is this where EventProcessors and Tokens somehow come into play ?

Thanks,
Jorg

Allard Buijze

unread,
Mar 16, 2018, 9:54:36 AM3/16/18
to axonfr...@googlegroups.com
You can use
org.axonframework.eventsourcing.eventstore.EventStore#readEvents(java.lang.String, long)

In the returned stream, you'd have to filter out messages with the right sequence number (or just stop iterating when hitting the max sequence number).

Hope this helps.
Cheers,

Allard

--
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