Issue
I have method A and method B in different classes. Both are annotated with @Transactional. Method A is calling B. Is there any solution to call B in different transaction but without suspending A transaction? Propagation.REQUIRES_NEW on B gives the possibility to always create new transaction when it's called but is suspends the caller transaction
Solution
As far as i know you can't do it with annotation REQUIRED_NEW.
But spring also support transaction manually with TransactionTemplate, TransactionDefinition.
we can use multiple definitions with just one PlatformTransactionManager.
Answered By - Huy Nguyen