-
1. Re: Suspending and Resuming Tx issues
vblagojevic Apr 30, 2012 11:08 AM (in response to an1310)Erik,
How do you obtain a reference to TransactionManager?
Regards,
Vladimir
-
2. Re: Suspending and Resuming Tx issues
an1310 Apr 30, 2012 11:21 AM (in response to vblagojevic)Hi Vladimir,
In the setEnvironment, I grab it from the masterCache's advancedCache.
https://gist.github.com/2559188
This is a JBoss JTA implementation (from JNDI).
-
3. Re: Suspending and Resuming Tx issues
vblagojevic Apr 30, 2012 11:45 AM (in response to an1310)Is it possible that lock method threw an exception? What I am suspecting is that lock threw an exception, callable finished, and Infinispan thread used to invoke tm.begin is the used again to run another callable and thus exception is thrown as transaction that was started before was not commited or rolled back i.e. dissasociated with Infinispan thread! Makes sense?
-
4. Re: Suspending and Resuming Tx issues
an1310 Apr 30, 2012 12:01 PM (in response to vblagojevic)I think you're right. Which means I need to catch lock's failures and roll back the current transaction context.
And I was right. I am kicking myself. =)
-
5. Re: Suspending and Resuming Tx issues
vblagojevic Apr 30, 2012 12:13 PM (in response to an1310)Excellent! I am glad you are using distributed executors! Keep the feedback coming!
Cheers,
Vladimir