This content has been marked as final.
Show 1 reply
-
1. Re: XA Support for distributed Transactions
tomjenkinson Oct 18, 2012 11:31 AM (in response to abyv)1 of 1 people found this helpfulHi Aby,
It may be worth asking this question in the infinispan forums as the answer revolves around whether you can evict data from Infinispan within the scope of an XA transaction. If this is possible, you can then update the JDBC database within the same transaction quite easily.
Please do let me know if you need any more assistance once you have the answer on the capabilities provided by Infinispan.
Briefly the algorithm is:tx.begin()
tx.enlist(inifinispan)
tx.enlist(database)
database.update(value of inifispan.evict());
tx.commit()
As you can see doing this relies on whether infinspan is able to evict data within the scope of a transaction, a question I am unable to answer.
Tom