Feb 14th, 2009, 08:43 AM
How can I control the transaction order with ProxyFactoryBean
I have @Transactional annotation on a Bean and I am using tx:annotation-driven with 2.5.6
On this bean I have a set of interceptors that perform additional logic, defined by a ProxyFactoryBean. The problem here is that the transaction starts after my interceptor and ends before the post processing of the transactional method call. One of the interceptor must be in the same transactional context as the method call. Is there any way to force the transactional interceptor in the ProxyFactoryBean maybe?
I tried to switch to plain aop with ordered advices but I had tons of issues with BeanInCreationException and Proxy issues.