]
Jason Greene updated WFLY-5006:
-------------------------------
Fix Version/s: 10.0.0.Beta1
(was: 10.0.0.Alpha6)
support for extended persistence context with
SynchronizationType.UNSYNCHRONIZED
--------------------------------------------------------------------------------
Key: WFLY-5006
URL:
https://issues.jboss.org/browse/WFLY-5006
Project: WildFly
Issue Type: Bug
Components: JPA / Hibernate
Affects Versions: 8.1.0.Final
Reporter: Scott Marlow
Assignee: Scott Marlow
Fix For: 10.0.0.Beta1
org.jboss.as.jpa.injectors.PersistenceContextInjectionSource handles injection of a
persistence context into EE components. PersistenceContextInjectionSource is not properly
handling SynchronizationType.UNSYNCHRONIZED when injecting an extended persistence
context. I'm not sure why this failure only appeared with Hibernate ORM 5.
If SynchronizationType is UNSYNCHRONIZED, we should call
EntityManagerFactory.createEntityManager(SynchronizationType synchronizationType, Map
map), instead of EntityManagerFactory.createEntityManager(Map map).