Spring Transaction advice : AOP proxy vs AspectJ weaving

Tags: , , , , ,

You are using Spring Transactions with Annotations. MyBS.methodRequired has Required propagation. MyBS.methodRequiresNew has Requires_New propagation. … methodRequired (…) { … methodRequiresNew(…); … } Do you get a new transaction if you call methodRequiresNew from methodRequired? You don’t! Not if you are using the default proxy mode via AOP proxies through which transactional advice is applied. [...]

Continue reading » 1 Comment