-
1. Re: Extending the Transaction Extension
bmajsak Nov 7, 2012 11:00 AM (in response to paul.robinson)Hi Paul,
you can also have a look at spring transaction handler implemented as part of spring extension https://github.com/arquillian/arquillian-extension-spring/blob/master/arquillian-transaction-spring/src/main/java/org/jboss/arquillian/transaction/spring/provider/SpringTransactionProvider.java
The rule is the same as for container adapters - there should only one concrete implementation on the classpath (let it be jta or spring).
The value of manager can be JNDI (as for jta specific case), but for spring it's simple bean id. Please have a look at SPIs and if you will have any further questions I will be more than happy to answer
Cheers,
Bartosz
-
2. Re: Extending the Transaction Extension
paul.robinson Nov 7, 2012 11:34 AM (in response to bmajsak)Thanks Bartosz,
That makes sense now. I'm just trying the JTA impl first, but I don't think it's loading as I've atatched break points to various points in JtaTransactionProvider and set an invalid @Transactional.manager. The breakpoints are not hit and the test doesn't fail due to an invalid manager name.
Can you take a look at my pom.xml and see if you can spot what I'm doing wrong?
Thanks,
Paul.
-
3. Re: Extending the Transaction Extension
paul.robinson Nov 7, 2012 11:34 AM (in response to paul.robinson)Here's the pom.xml
-
pom.xml 2.3 KB
-
-
4. Re: Extending the Transaction Extension
paul.robinson Nov 9, 2012 8:51 AM (in response to paul.robinson)Bartosz,
I've just tried it again today and it worked. Maybe something needed cleaning, who knows!
Thanks for your help,
Paul.
-
5. Re: Extending the Transaction Extension
bmajsak Nov 9, 2012 9:00 AM (in response to paul.robinson)Hi Paul,
sorry for not looking at it promptly... Kinda lost in puppet / vagrant world at work currently
Cheers,
Bartosz
-
6. Re: Extending the Transaction Extension
paul.robinson Nov 9, 2012 9:48 AM (in response to bmajsak)No problem,
I now have the opposite problem. I remove the "arquillian-transaction-jta" dependency and it's still ran. I must have something weird going on with my environment. I'll investigate and get back if I have anything concrete.
Paul.
-
7. Re: Extending the Transaction Extension
paul.robinson Nov 12, 2012 3:09 AM (in response to paul.robinson)FYI,
I got something reproducible and opened up a new topic, as I decided it was unrelated to my original post:
https://community.jboss.org/thread/213188
Paul.