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

    Hibernate Entity+Query cache with INVALIDATION_SYNC and PESS

    youngm

      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:

      http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossCacheHibernate

      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?

      Mike