For the latest stable version, please use Spring Framework 6.2.1!

Transaction Management

Comprehensive transaction support is among the most compelling reasons to use the Spring Framework. The Spring Framework provides a consistent abstraction for transaction management that delivers the following benefits:

  • A consistent programming model across different transaction APIs, such as Java Transaction API (JTA), JDBC, Hibernate, and the Java Persistence API (JPA).

  • Support for declarative transaction management.

  • A simpler API for programmatic transaction management than complex transaction APIs, such as JTA.

  • Excellent integration with Spring’s data access abstractions.

The following sections describe the Spring Framework’s transaction features and technologies:

The chapter also includes discussions of best practices, application server integration, and solutions to common problems.