Here is two ways to manage transactions in spring: