13.6Programmatic transaction management

The Spring Framework provides two means of programmatic transaction management:

  • Using theTransactionTemplate.

  • Using aPlatformTransactionManagerimplementation directly.

The Spring team generally recommends theTransactionTemplatefor programmatic transaction management. The second approach is similar to using the JTAUserTransactionAPI, although exception handling is less cumbersome.

results matching ""

    No results matching ""