Answer by Zakaria Bouazza for Nested transaction on Spring
The default advice mode for processing @Transactional annotations is proxy, which allows for interception of calls through the proxy only. Local calls within the same class cannot get intercepted that...
View ArticleAnswer by brettjonesdev for Nested transaction on Spring
This is not specifically a problem with @Transactional. It is due to the configuration of your <tx:annotation-driven/>. Spring uses two different AOP mechanisms: JDK dynamic proxies or CGLIB. JDK...
View ArticleAnswer by gabuzo for Nested transaction on Spring
This behavior is the documented behavior of Spring when using the proxy mode for AOP. It can be changed by switching to the aspectj mode which perform code instrumentation either on compilation or at...
View ArticleNested transaction on Spring
I found some strange behavior when using nested Spring transactions: when, in the same class, a method annotated as @Transactional calls another method also annotated as @Transactional the second...
View Article