Starting new transaction in Spring bean
- by Marcus
We have:
@Transactional(propagation = Propagation.REQUIRED)
public class MyClass implementes MyInterface { ...
MyInterface has a single method: go().
When go() executes we start a new transaction which commits/rollbacks when the method is complete - this is fine.
Now let's say in go() we call a private method in MyClass that has…