PDA

View Full Version : Transaction problems



Mendrik
Jul 23rd, 2008, 04:34 AM
Hello,

I tried almost everything and I can't get the annontation-based transactions to work. My current setup is: Tomcat 6, Spring 2.5.5,OpenJPA 1.1.0 and Struts 2. I'm using the ReflectionalLoadTimeWeaver.

What I managed to do is to get my transcations to work outside of Struts 2, but when I try to annotate Action methods with Transactional it breaks _all_ my setters in that class (injected beans, POST params, etc are all null).
I'm using JDK6 without any javaagent.

The relevant config pieces are attached

Can anyone point me into the right direction? I probably miss a tiny detail.

Cheers,
Andreas

dejanp
Jul 23rd, 2008, 09:32 AM
I don't think it's a good idea to make your init method transactional. There is no guarantee that transactionManager is initialized at that point.