I want to explore the new transaction feature of MongoDB and use Spring Data MongoDB. However, I get the exception message \"Sessions are not supported by the MongoDB cl
Make sure you're using the updated API - for example:
MongoClient mongoClient = MongoClients.create(); MongoDatabase dataBase = mongoClient.getDatabase("mainDatabase"); MongoCollection collection = dataBase.getCollection("entities");
Also make sure you have mongo.exe open.