-
1. Re: Deltaspike JPA Module for JTA Transactions,
nathandennis Jul 2, 2013 10:03 AM (in response to suikast42)which DS version and WELD version are you using?
-
2. Re: Deltaspike JPA Module for JTA Transactions,
nathandennis Jul 2, 2013 12:48 PM (in response to suikast42)actually i think im having the same problem
-
3. Re: Deltaspike JPA Module for JTA Transactions,
suikast42 Jul 3, 2013 6:52 AM (in response to nathandennis)I'm using Jboss 7.2.0.Final. It's shipped withWeld 1.1.10.Final.
My workarround is to copy the code of deltaspike TransactionalInterceptor and use you copied interceptor. Then the alternative in your beans.xml works.
-
4. Re: Deltaspike JPA Module for JTA Transactions,
nathandennis Jul 3, 2013 8:21 AM (in response to suikast42)i actually got this working yesterday with the help of mark struberg. did you add a custom apache-deltaspike.properties files and put the line globalAlternatives.org.apache.deltaspike.jpa.spi.transaction.TransactionStrategy=org.apache.deltaspike.jpa.impl.transaction.BeanManagedUserTransactionStrategy
in there?
that should be where you configure the TransactionStrategy for WELD. the other thing i saw that was giving me trouble was a bit of IDE debugger weirdness. I was putting the right stuff in my config and had the correct version declared but no luck. when i started debugging the delta spike source i ran the command mvn dependency:sources and that seemed to shake it loose for some reason and all started working as expected.
by the way.. i was running on DS 0.5-snap. but i know for a fact it should work with 0.4 because cody is using it.
-
5. Re: Deltaspike JPA Module for JTA Transactions,
suikast42 Jul 3, 2013 9:05 AM (in response to nathandennis)Hi nathan,
I had no luck with that too.
-
6. Re: Deltaspike JPA Module for JTA Transactions,
nathandennis Jul 3, 2013 9:25 AM (in response to suikast42)can you set a break point on TransactionInterceptor.executeInTransaction and see what TransactionStrategy its returning? obviously changed it back to the DeltaSpike Interceptor. is it finding your config file when the project starts? it says something about finding it in the stack.
-
7. Re: Deltaspike JPA Module for JTA Transactions,
suikast42 Jul 4, 2013 3:36 AM (in response to nathandennis)Fur that purpose I used the deltaspike interceptor. But it injected only the ResourceLocalStrategy