1 of 1 people found this helpful
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:
database.update(value of inifispan.evict());
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.