ARTICLE AD BOX
I have a Spring service class with two methods, both annotated with @Transactional. When I call the second method from the first one internally (within the same bean), the transaction of the second method doesn't seem to start a new one — it just reuses the existing transaction even though I set propagation = Propagation.REQUIRES_NEW*.
@Service public class MyService { @Transactional public void methodA() { methodB(); // calling internal method } @Transactional(propagation = Propagation.REQUIRES_NEW) public void methodB() { // expected a new transaction here } }Why does REQUIRES_NEW not create a new transaction when called from** methodA()? Is this related to Spring AOP proxy mechanism?
Please help!
