Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-9530

Requesting TRANSACTIONAL cache concurrency strategy but the cache is not configured as transactional.

    XMLWordPrintable

Details

    • 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 ... { ... }
    • Release Notes

    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.
      

      Attachments

        Issue Links

          Activity

            People

              pferraro@redhat.com Paul Ferraro
              pferraro@redhat.com Paul Ferraro
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: