allow JPA apps to disable WildFly JTA platform/2lc initiators for
Hibernate ORM 5.3+
------------------------------------------------------------------------------------
Key: WFLY-10433
URL:
https://issues.jboss.org/browse/WFLY-10433
Project: WildFly
Issue Type: Task
Components: JPA / Hibernate
Reporter: Scott Marlow
Assignee: Scott Marlow
Fix For: 13.0.0.CR1
Some applications (e.g. Spring) may not want to use the WF 2lc RegionFactoryInitiator +
JtaPlatform classes. To accommodate that need, following persistence unit configuration
properties will help:
* wildfly.jpa.jtaplatform will default to true but if set to false, the WildFly
JtaPlatform initiator for ORM 5.3+ (WildFlyCustomJtaPlatformInitiator), will not control
Jta use in the Hibernate persistence unit (or session factory).
* wildfly.jpa.regionfactory will default to true but if set to false,the WildFly 2lc
cache initiator for ORM (WildFlyCustomRegionFactoryInitiator) will not control 2lc use in
the Hibernate persistence unit (or session factory). Instead, the Hibernate ORM 2lc cache
initiator will be used.