Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-13724

[GSS](7.2.0) Requesting TRANSACTIONAL cache concurrency strategy but the cache is not configured as transactional.

XMLWordPrintable

    • Release Notes
    • Hide

      The following are configured in `hibernate.cfg.xml`

                      <property name="cache.region.factory_class">org.jboss.as.jpa.hibernate5.infinispan.InfinispanRegionFactory</property>
                      <property name="cache.infinispan.cachemanager">java:jboss/infinispan/container/hibernate</property>
                      <property name="cache.use_second_level_cache">true</property>
      

      An entity is marked with the annotation:

      import org.hibernate.annotations.Cache;
      import static org.hibernate.annotations.CacheConcurrencyStrategy.TRANSACTIONAL;
      
      @Entity
      @Cache(usage=TRANSACTIONAL)
      public class Employee ... {
          ...
      }
      
      Show
      The following are configured in `hibernate.cfg.xml` <property name= "cache.region.factory_class" >org.jboss.as.jpa.hibernate5.infinispan.InfinispanRegionFactory</property> <property name= "cache.infinispan.cachemanager" >java:jboss/infinispan/container/hibernate</property> <property name= "cache.use_second_level_cache" > true </property> An entity is marked with the annotation: import org.hibernate.annotations.Cache; import static org.hibernate.annotations.CacheConcurrencyStrategy.TRANSACTIONAL; @Entity @Cache(usage=TRANSACTIONAL) public class Employee ... { ... }

      When deploying a legacy (non-JPA) Hibernate application with level 2 cache enabled, the following WARN is logged:

      ... WARN  [org.hibernate.cache.infinispan.impl.BaseRegion] ... Requesting TRANSACTIONAL cache concurrency strategy but the cache is not configured as transactional.
      

        1. wildfly-12.0.0.Final.log
          20 kB
        2. wildfly-11.0.0.Final.log
          16 kB
        3. sample-app.zip
          21 kB
        4. jboss-eap-7.2.log
          31 kB

              tborgato@redhat.com Tommaso Borgato
              rhn-support-sfikes Stephen Fikes (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: