Handling a transaction with Spring

Spring Framework provides supports for transaction management. The following are characteristics of the Spring transaction management framework:

  • Offers abstraction for transaction management
  • Defines a programming model that supports different transaction APIs, such as JDBC, JTA, and JPA
  • Declarative transaction management is supported
  • Provides a simpler programmatic transaction management API
  • Easily integrates with Spring's data access abstractions

Two transaction management options are available for the J2EE developers. The following are the two options:

  • The application server manages global transactions, using the Java Transaction API (JTA). It supports multiple transaction resources, such as database transactions, ...

Get Mockito for Spring now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.