KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How far does the spring framework go with transaction handling? My reading of the book "Spring In Action" suggestions with its examples that you create DAO methods that don't worry about Session and Transaction management fairly simply by setting up a session factory and transaction template in XML and then wiring them into your DAO. SpringSource.org's documentation, on the other hand, suggests that need tons of XML and/or annotation to make this happen. What is the truth here, what is the simplest way I can take code along the lines of get session from sessionfactory open transaction preform database actions commit transaction with error handling and make it just preform database actions reducing the amount of boiler plate transactional code that I have across my methods to a minimum?
Tags (comma-separated)
Save Edits
Cancel