Details
-
Bug
-
Resolution: Done
-
Major
-
8.1.0.Final
-
None
Description
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).