Transactions, Spring.
performed 1. The Template starts a new transaction with a borrowed connection and executes generateOrder and generateInvoice in a single transaction. 2. Then the transaction is closed and connection is returned to the connection pool 3. payment API call is made 4. Then again the template starts a