1 Reply Latest reply on Jan 6, 2015 3:34 AM by csg2013

    Tree cache doesn't rollback when database transaction rollbacked

    csg2013

      Hi guys,

      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.

       

      Sigang Chen.