Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-530

Servlets that use container managed transactional entity managers outside of JTA transactions, should close the entity manager after the servlet completes

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 7.0.0.CR1
    • None
    • JPA / Hibernate
    • None

      For any servlet using a container managed entity manager, without a JTA transaction active. The container managed entity manager should be closed after the servlet invocation completes.

      One way this might be done, is by dynamically adding the org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve valve, to the JBossWebMetaData metadata object, which is
      equivalent to adding the valve to jboss-web.xml.

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

              Created:
              Updated:
              Resolved: