--
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.
Hello Steven,
I have few questions on the approaches you mentioned,
1. Can we use MongoDB as a token store, I see that axon by default supports inmemory, jpa and jdbc.
2. I am using MongoDB as my event store, is it compatible with event replay?? If yes, then
3. Do I need to override TokenStore and TokenEntry If I have to use MongoDB as tokenstore?
4. How can I validate that the messages are now comming from 'TrackingEventProcessor'.
5. How to trigger the event replay
TokenStore getMongoTokenStore() {
// Using the Axon Mongo Template and JSON serializer
return new MongoTokenStore(axonMongoTemplate(), axonJsonSerializer());
}
My Repo
public interface TokenMongoRepository extends MongoRepository<MongoTrackingToken, String> {
}
But unlike JPA where my tables are getting created successfully. In case of mongo I do not see any collections getting created. Am I missing something.
For you're last question, I can tell you that you're not required to write your own MongoRepository bean.
The only requirement Axon Framework has, is that you provide a MongoTokenStore, with the desired MongoTemplate and the Serializer you're using throughout your system.
I'm however no Mongo expert, so I can't tell you if Mongo should create the token table for you automatically or if you should be creating that yourself.
Hope this helps you out Ajinkya, please don't hesitate to answer more questions to clarify things!
Cheers,
Steven