Skip to main content

Mini Project: Money Transfer with Rollback

Learn Mini Project: Money Transfer with Rollback (Spring Transactions, Spring Boot) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Mini Real-Time Project: Money Transfer with Rollback Problem Moving money means debit one account and credit another. If anything fails in between, both changes must be undone so no money disappears. Requirements Implement transfer with @Transactional. Show a successful transfer commits both updates. Show a failure after the debit rolls the debit back. Show that an audit record written in a REQUIRES_NEW transaction survives the rollback. Concepts Used @Transactional rollback on RuntimeException Propagation.REQUIRES_NEW atomicity DataSourceTransactionManager Maven Dependencies...

More lessons in Spring Transactions