13.6Programmatic transaction management
The Spring Framework provides two means of programmatic transaction management:
Using the
TransactionTemplate.Using a
PlatformTransactionManagerimplementation 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.