I am using a NoSQL database MongoDB with Java and Spring Data. I am aware that MongoDB only supports transactions for a single document.
I am using Spring Transactions to carry out MongoDB transcations. I am using TransactionTemplate. What should I set in TransactionManager when using TransactionTemplate?
EDIT
I have something like this:
I need to define txnManagerBean to point to something like DataSourceTransactionManager for a MongoDB database.
解决方案