3 Replies Latest reply on Dec 18, 2006 7:18 AM by Manik Surtani

    Hibernate Entity+Query cache with INVALIDATION_SYNC and PESS

    youngm Novice

      I'm using JBossCache as a hibernate second level cache. I wish to use PESSIMISTIC locking (I want query cache and want to minimize random RollbackExceptions) with INVALIDATION (Don't want to replicate the cache throughout the cluster). Looking at the wiki:


      INVALIDATION_SYNC with PESSIMISTIC locking is not a recommended option. Is there anything inherently wrong with invalication and pessimistic locking or would others here consider that a valid configuration for a Hibernate second level cache?