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

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

    Details

    • Target Release:
    • Steps to Reproduce:
      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 ... { ... }
    • Affects:
      Release Notes
    • Sprint:
      EAP 7.1.1

      Description

      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.
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  pferraro Paul Ferraro
                  Reporter:
                  stephen.fikes Stephen Fikes
                  Tester:
                  Jiří Bílek
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: