Hi All ,
Currently I am using axon-mongo-extension axon 4.1 . Please any one having the @Configuration in java using MongoEventStorageEngine.builder().mongoTemplate(axonMongoTemplate).build() . But still I am unable to connect to Mongo .
Can any one share the piece of code to connect Mongo . Please find the below code
@Bean
public MongoTemplate axonMongoTemplate(MongoClient client) {
return new DefaultMongoTemplate(client, mongoDB);
}
@Bean
public EventStorageEngine eventStorageEngine(){
return new MongoEventStorageEngine(axonMongoTemplate());
}
/Saranga