Hi, I have a question regarding rolling back Spring transactions using aop definitions.
If I call service.save(), and save() throws a RuntimeException then everything works fine - the transaction is successfully rolled back.Code:<tx:advice id="txAdvice" transaction-manager="transactionManager"> <tx:attributes> <tx:method name="save*" /> </tx:attributes> </tx:advice>
However if I call service.test(), and all test() does is call save(), then the transaction never gets rolled back.
It's almost like Spring's TransactionInterceptor doesn't fire unless you call service.save() directly.
Thoughts?


Reply With Quote