[
https://issues.jboss.org/browse/WFLY-11010?page=com.atlassian.jira.plugin...
]
Scott Marlow commented on WFLY-11010:
-------------------------------------
Below is TRACE output for org.jipijapa enabled while deploying a few different apps:
{quote}
2018-09-25 09:42:31,467 TRACE [org.jipijapa] (ServerService Thread Pool -- 73)
ServiceContributorImpl#contribute application will use WildFlyCustomJtaPlatform
2018-09-25 09:42:31,467 TRACE [org.jipijapa] (ServerService Thread Pool -- 72)
ServiceContributorImpl#contribute application will use WildFlyCustomJtaPlatform
2018-09-25 09:42:31,655 TRACE [org.jipijapa] (ServerService Thread Pool -- 74)
ServiceContributorImpl#contribute application will use WildFlyCustomJtaPlatform
2018-09-25 09:42:31,657 TRACE [org.jipijapa] (ServerService Thread Pool -- 75)
ServiceContributorImpl#contribute application will use WildFlyCustomJtaPlatform
2018-09-25 09:42:41,576 TRACE [org.jipijapa] (ServerService Thread Pool -- 73)
ServiceContributorImpl#contribute application is using Ehcache via
regionFactory=net.sf.ehcache.hibernate.EhCacheRegionFactory
2018-09-25 09:43:15,122 TRACE [org.jipijapa] (ServerService Thread Pool -- 75)
ServiceContributorImpl#contribute adding ORM initiator for 2lc region factory
2018-09-25 09:43:15,153 TRACE [org.jipijapa] (ServerService Thread Pool -- 75)
WildFlyCustomRegionFactoryInitiator#resolveRegionFactory using
org.infinispan.hibernate.cache.v53.InfinispanRegionFactory for 2lc,
useSecondLevelCache=true, jpaSharedCodeModeValue=ENABLE_SELECTIVE,
regionFactory=org.infinispan.hibernate.cache.v53.InfinispanRegionFactory
2018-09-25 09:43:19,842 TRACE [org.jipijapa] (ServerService Thread Pool -- 74)
ServiceContributorImpl#contribute application is using Ehcache via
regionFactory=net.sf.ehcache.hibernate.EhCacheRegionFactory
2018-09-25 09:43:32,690 TRACE [org.jipijapa] (MSC service thread 1-2) second level cache
enabled for 2lc.jar#TEST_PU
2018-09-25 09:43:32,711 TRACE [org.jipijapa] (MSC service thread 1-2) second level cache
disabled for 2lc.jar#second_PU, pu javax.persistence.sharedCache.mode property = null,
pu.getSharedCacheMode = NONE
2018-09-25 09:43:46,167 TRACE [org.jipijapa] (ServerService Thread Pool -- 72)
ServiceContributorImpl#contribute adding ORM initiator for 2lc region factory
2018-09-25 09:43:46,169 TRACE [org.jipijapa] (ServerService Thread Pool -- 72)
WildFlyCustomRegionFactoryInitiator#resolveRegionFactory using
org.infinispan.hibernate.cache.v53.InfinispanRegionFactory for 2lc,
useSecondLevelCache=true, jpaSharedCodeModeValue=NONE, regionFactory=null
2018-09-25 09:45:03,479 TRACE [org.jipijapa] (MSC service thread 1-5) second level cache
disabled for MultiplePuTestCase.jar#pu2, pu javax.persistence.sharedCache.mode property =
null, pu.getSharedCacheMode = UNSPECIFIED
2018-09-25 09:45:03,480 TRACE [org.jipijapa] (MSC service thread 1-5) second level cache
disabled for MultiplePuTestCase.jar#pu1, pu javax.persistence.sharedCache.mode property =
null, pu.getSharedCacheMode = UNSPECIFIED
2018-09-25 09:45:03,487 TRACE [org.jipijapa] (ServerService Thread Pool -- 72)
ServiceContributorImpl#contribute application will use WildFlyCustomJtaPlatform
2018-09-25 09:45:03,487 TRACE [org.jipijapa] (ServerService Thread Pool -- 72)
ServiceContributorImpl#contribute adding ORM initiator for 2lc region factory
2018-09-25 09:45:03,525 TRACE [org.jipijapa] (ServerService Thread Pool -- 78)
ServiceContributorImpl#contribute application will use WildFlyCustomJtaPlatform
2018-09-25 09:45:03,525 TRACE [org.jipijapa] (ServerService Thread Pool -- 78)
ServiceContributorImpl#contribute adding ORM initiator for 2lc region factory
2018-09-25 09:45:04,022 TRACE [org.jipijapa] (MSC service thread 1-6) second level cache
disabled for MultiplePuTestCase.jar#pu2, pu javax.persistence.sharedCache.mode property =
null, pu.getSharedCacheMode = NONE
2018-09-25 09:45:04,024 TRACE [org.jipijapa] (MSC service thread 1-6) second level cache
disabled for MultiplePuTestCase.jar#pu1, pu javax.persistence.sharedCache.mode property =
null, pu.getSharedCacheMode = NONE
2018-09-25 09:45:14,514 TRACE [org.jipijapa] (ServerService Thread Pool -- 72)
WildFlyCustomRegionFactoryInitiator#resolveRegionFactory not using a 2lc,
useSecondLevelCache=null, jpaSharedCodeModeValue=NONE, regionFactory=null
2018-09-25 09:45:16,574 TRACE [org.jipijapa] (ServerService Thread Pool -- 78)
WildFlyCustomRegionFactoryInitiator#resolveRegionFactory not using a 2lc,
useSecondLevelCache=null, jpaSharedCodeModeValue=NONE, regionFactory=null
2018-09-25 09:47:40,713 TRACE [org.jipijapa] (MSC service thread 1-1) second level cache
disabled for JpaStatisticsTestCase.jar#mypc_no_2lc, pu javax.persistence.sharedCache.mode
property = null, pu.getSharedCacheMode = NONE
2018-09-25 09:47:40,714 TRACE [org.jipijapa] (MSC service thread 1-1) second level cache
enabled for JpaStatisticsTestCase.jar#mypc2
2018-09-25 09:47:40,714 TRACE [org.jipijapa] (MSC service thread 1-1) second level cache
enabled for JpaStatisticsTestCase.jar#mypc
2018-09-25 09:47:40,728 TRACE [org.jipijapa] (ServerService Thread Pool -- 80)
ServiceContributorImpl#contribute application will use WildFlyCustomJtaPlatform
2018-09-25 09:47:40,729 TRACE [org.jipijapa] (ServerService Thread Pool -- 80)
ServiceContributorImpl#contribute adding ORM initiator for 2lc region factory
2018-09-25 09:47:40,729 TRACE [org.jipijapa] (ServerService Thread Pool -- 80)
WildFlyCustomRegionFactoryInitiator#resolveRegionFactory not using a 2lc,
useSecondLevelCache=false, jpaSharedCodeModeValue=NONE, regionFactory=null
2018-09-25 09:47:40,735 TRACE [org.jipijapa] (ServerService Thread Pool -- 84)
ServiceContributorImpl#contribute application will use WildFlyCustomJtaPlatform
2018-09-25 09:47:40,735 TRACE [org.jipijapa] (ServerService Thread Pool -- 83)
ServiceContributorImpl#contribute application will use WildFlyCustomJtaPlatform
2018-09-25 09:47:40,736 TRACE [org.jipijapa] (ServerService Thread Pool -- 83)
ServiceContributorImpl#contribute adding ORM initiator for 2lc region factory
2018-09-25 09:47:40,736 TRACE [org.jipijapa] (ServerService Thread Pool -- 84)
ServiceContributorImpl#contribute adding ORM initiator for 2lc region factory
2018-09-25 09:47:40,736 TRACE [org.jipijapa] (ServerService Thread Pool -- 84)
WildFlyCustomRegionFactoryInitiator#resolveRegionFactory using
org.infinispan.hibernate.cache.v53.InfinispanRegionFactory for 2lc,
useSecondLevelCache=true, jpaSharedCodeModeValue=ENABLE_SELECTIVE,
regionFactory=org.infinispan.hibernate.cache.v53.InfinispanRegionFactory
2018-09-25 09:47:40,736 TRACE [org.jipijapa] (ServerService Thread Pool -- 83)
WildFlyCustomRegionFactoryInitiator#resolveRegionFactory using
org.infinispan.hibernate.cache.v53.InfinispanRegionFactory for 2lc,
useSecondLevelCache=true, jpaSharedCodeModeValue=ENABLE_SELECTIVE,
regionFactory=org.infinispan.hibernate.cache.v53.InfinispanRegionFactory
2018-09-25 09:47:40,785 TRACE [org.jipijapa] (MSC service thread 1-1) second level cache
disabled for JpaStatisticsTestCase.jar#mypc_no_2lc, pu javax.persistence.sharedCache.mode
property = null, pu.getSharedCacheMode = NONE
2018-09-25 09:47:40,786 TRACE [org.jipijapa] (MSC service thread 1-1) second level cache
enabled for JpaStatisticsTestCase.jar#mypc2
2018-09-25 09:47:40,786 TRACE [org.jipijapa] (MSC service thread 1-1) second level cache
enabled for JpaStatisticsTestCase.jar#mypc
2018-09-25 09:49:25,370 TRACE [org.jipijapa] (MSC service thread 1-1) second level cache
disabled for jpa_emfactory.jar#mypc, pu javax.persistence.sharedCache.mode property =
null, pu.getSharedCacheMode = UNSPECIFIED
2018-09-25 09:49:25,372 TRACE [org.jipijapa] (ServerService Thread Pool -- 83)
ServiceContributorImpl#contribute application will use WildFlyCustomJtaPlatform
2018-09-25 09:49:25,372 TRACE [org.jipijapa] (ServerService Thread Pool -- 83)
ServiceContributorImpl#contribute adding ORM initiator for 2lc region factory
2018-09-25 09:49:25,373 TRACE [org.jipijapa] (ServerService Thread Pool -- 83)
WildFlyCustomRegionFactoryInitiator#resolveRegionFactory not using a 2lc,
useSecondLevelCache=null, jpaSharedCodeModeValue=NONE, regionFactory=null
2018-09-25 09:49:25,391 TRACE [org.jipijapa] (MSC service thread 1-1) second level cache
disabled for jpa_emfactory.jar#mypc, pu javax.persistence.sharedCache.mode property =
null, pu.getSharedCacheMode = NONE
{quote}
Document 2lc/JTA integration properties and add better detection of
ehcache/JTAFactoryClass use
-----------------------------------------------------------------------------------------------
Key: WFLY-11010
URL:
https://issues.jboss.org/browse/WFLY-11010
Project: WildFly
Issue Type: Bug
Components: JPA / Hibernate
Affects Versions: 14.0.0.Final
Reporter: Scott Marlow
Assignee: Scott Marlow
Fix For: 15.0.0.Alpha1
Document the "wildfly.jpa.regionfactory" and
"wildfly.jpa.jtaplatform" properties for Hibernate ORM 5.3+ integration.
Also automatically treat "wildfly.jpa.regionfactory" as false if [ehcache is
being
used|http://www.ehcache.org/documentation/2.7/integrations/hibernate.html] (e.g.
check if the hibernate.cache.region.factory_class value starts with
"net.sf.ehcache"). This should help applications that have configured to use
Ehcache.
Also automatically treat "wildfly.jpa.jtaplatform" as false if the application
sets either "hibernate.transaction.factory_class" or
"hibernate.transaction.jta.platform". This should help applications that have
configured to use JTA transaction factory or transaction platform classes.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)