Transactions are used to make updates "transactional."
Example) A user clicks on a web page that updates 13 records in the database. The transaction will ensure that 0 or 13 updates are received, the error will force everything to roll back.
Managers are all about making work easier. They will not magically make your code thread safe. Using DAO directly is not a thread safety bug.
However, I suggest you limit the logic in your DAO and put as much logic as you can in the business layers. See Best Practices for the DAO Template?
If you post a small example of your code that does not work with multiple threads, we can offer some ideas ... but neither transactions, nor managers will help solve your problem.
bwawok
source share