October 2017
Intermediate to advanced
396 pages
10h 2m
English
Spring allows you to implement and demarcate transactions programmatically in the application by using the TransactionTemplate and a PlatformTransactionManager implementation directly. But declarative transaction management is highly recommended, because it provides a clean code and a very flexible configuration.
Let's see how to implement the transactions in the application programmatically:
package com.packt.patterninspring.chapter8.bankapp.service; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.PlatformTransactionManager; import org.springframework.transaction.TransactionStatus; ...
Read now
Unlock full access