Advantages of the Spring Framework’s transaction management:-
The Spring Framework provides a consistent abstraction for transaction management that shows the following benefits:
1 Consistent programming model across different transaction APIs such as Java Transaction API (JTA), JDBC, Hibernate, Java Persistence API (JPA), and Java Data Objects (JDO).
2 Support for declarative transaction management.
3 Simpler API for programmatic transaction management than complex transaction APIs such as JTA.
4 Excellent integration with Spring’s data access abstractions.
5 Uuse the Spring Framework’s transaction abstraction instead of EJB Container-Managed Transactions (CMT) or choosing to drive local transactions through a proprietary API such as Hibernate.
6 Synchronizing resources with transactionsdescribes how the application code ensures that resources are created, reused, and cleaned up properly.
7 Spring Framework’s transaction management provide Global and Local Transaction for Java EE developers .
Global transactions enable you to work with multiple transactional resources,
typically relational databases and message queues.
Local transactions are resource-specific, such as a transaction associated with a JDBC connection. Local transactions may be easier to use,