1 Reply Latest reply on Aug 3, 2007 10:21 AM by Manik Surtani

    Optimistic Locking and version checking on read only objects

    jw Newbie

      We are using JBoss Cache 1.4.1SP1 with optimistic locking.

      It seems, that when retrieving objects from the cache within a transaction in a read only manner (means only getter methods are called on the retrieved objects) that the version of the object is increased anyway when the transaction is committed.
      As a result of this we get a version conflict exception in another transaction where the object is modified.

      Can anybody confirm this behaviour?