[
https://issues.jboss.org/browse/WFLY-9530?page=com.atlassian.jira.plugin....
]
Florin Spătar commented on WFLY-9530:
-------------------------------------
Apparently this still happens in WildFly 12, but in a slightly different configuration:
I don't use hibernate directly, but through JPA. In `persistence.xml` I have the
following:
{noformat}
<property
name="hibernate.cache.infinispan.ejb-embedded-server-4.0-SNAPSHOT.jar#embedded_test.embedded_test.memory.size"
value="100000"/>
{noformat}
And the WARN is the same:
{noformat}
16:17:44,696 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 63)
WFLYCLINF0002: Started ejb-embedded-server-4.0-SNAPSHOT.jar#embedded_test.embedded_test
cache from hibernate container
16:17:44,697 WARN [org.infinispan.hibernate.cache.impl.BaseRegion] (ServerService Thread
Pool -- 63) HHH025012: Requesting TRANSACTIONAL cache concurrency strategy but the cache
is not configured as transactional.
16:17:44,706 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 63)
WFLYCLINF0002: Started
ejb-embedded-server-4.0-SNAPSHOT.jar#embedded_test.embedded_test-pending-puts cache from
hibernate container
16:17:44,748 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 63)
WFLYCLINF0002: Started
ejb-embedded-server-4.0-SNAPSHOT.jar#embedded_test.embedded_test_collections cache from
hibernate container
16:17:44,751 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 63)
WFLYCLINF0002: Started
ejb-embedded-server-4.0-SNAPSHOT.jar#embedded_test.embedded_test_collections-pending-puts
cache from hibernate container
{noformat}
Apparently if you try to configure anything on a cache region, it will inherit a
NON_TRANSACTIONAL configuration.
*PS*: the issue also reproduces in WildFly 13
{noformat}
WARN [org.infinispan.hibernate.cache.v51.impl.BaseRegion] (ServerService Thread Pool --
72) HHH025012: Requesting TRANSACTIONAL cache concurrency strategy but the cache is not
configured as transactional.
{noformat}
Requesting TRANSACTIONAL cache concurrency strategy but the cache is
not configured as transactional.
-----------------------------------------------------------------------------------------------------
Key: WFLY-9530
URL:
https://issues.jboss.org/browse/WFLY-9530
Project: WildFly
Issue Type: Bug
Components: Clustering, JPA / Hibernate
Affects Versions: 11.0.0.Final
Reporter: Paul Ferraro
Assignee: Paul Ferraro
Fix For: 12.0.0.Beta1, 12.0.0.Final
When deploying a legacy (non-JPA) Hibernate application with level 2 cache enabled, the
following WARN is logged:
{code}
... WARN [org.hibernate.cache.infinispan.impl.BaseRegion] ... Requesting TRANSACTIONAL
cache concurrency strategy but the cache is not configured as transactional.
{code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)