Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-5006

support for extended persistence context with SynchronizationType.UNSYNCHRONIZED

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 10.0.0.Beta1
    • 8.1.0.Final
    • JPA / Hibernate
    • None

      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).

            smarlow1@redhat.com Scott Marlow
            smarlow1@redhat.com Scott Marlow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: