Thursday, 21 April 2016

What are the types and benefits of Spring Transaction management ?


Spring Framework supports :
  1. Programmatic transaction management
  2. Declarative transaction management

Benefits of the Spring Framework transaction management
  • Provides a consistent programming model across different transaction APIs such as JTA, JDBC, Hibernate, JPA, and JDO.
  • Supports declarative transaction management.
  • Provides a simpler API for programmatic transaction management than a number of complex transaction APIs such as JTA.
  • Integrates very well with Spring’s various data access abstractions.

Most users of the Spring Framework choose declarative transaction management because it is the option with the least impact on application code, and hence is most consistent with the ideals of a non-invasive lightweight container.

Programmatic transaction management is usually a good idea only if you have a small number of transactional operations.

On the other hand, if your application has numerous transactional operations, declarative transaction management is usually worthwhile. It keeps transaction management out of business logic, and is not difficult to configure.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.