2 Replies Latest reply on Sep 3, 2019 2:01 PM by tstiemerling

    How do I delay cache invalidation until transaction has finished

    tstiemerling

      We are using WildFly 16 with an Infinispan invalidation cache for business objects backed by JPA entities. When we update an entity in a method bounded by a JTA transaction, we want the evict to go out only after the transaction successfully commits, to prevent race conditions where the cache is re-filled with the old object. Does Infinispan provide any help with this? Doing it with JPA or JTA callbacks seems complicated and error prone.