title: How to create transactions using MongoDB Java?
body: <p>I am working in java (not is spring) on a mongo db collection. I want to perform some update operations in one transaction, so all or none of the operations will be execute.<br />
  I didn't find any simple example of how it can be done. I understand that it related to session in mongo db, but how to create this session? If someone have an example of this scenario in java I will appreciate if he could share.</p>
  <p>Thanks,
  Osnat.</p>