I was using JBoss Cache and migrated it to infinispan recently, as our application is migrated from JBoss5 to JBoss7. We designed the cache in tree structure, so it is nice that infinispan provides compatible tree api.
The cache and database data is operated in a single EJB call, so I assume that they are in the same transaction. But I found that if the modification of the cache wouldn't rollback when the transaction assosiated with this EJB call rollbacked(e.g. Hibernate throws an exception) . And in this case, it results in data inconsistency.
Is there any solution for this issue?
Thanks a lot.
configuration for this cache:
transaction mode = NON_XA