Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-1715

Migration Guide should document jboss.as.jpa.deferdetach property

XMLWordPrintable

    For compatibility with earlier JBoss application server versions (5.0/6.0), add an extension that allows the persistence context to last until the referencing persistence context is closed.

    For example, in a session method that has no active JTA transaction, entities returned, will not cleared from the persistence context, until the session method completes. This extension is only introduced to allow compatibility with older application server versions.

    smarlow@redhat.com added the "jboss.as.jpa.deferdetach" persistence unit hint that may be set to true to enable the extension.

    <property name="jboss.as.jpa.deferdetach" value="true" />

    See https://issues.jboss.org/browse/WFLY-3674 for details.

    There is also more information here" https://docs.jboss.org/author/display/WFLY10/JPA+Reference+Guide

            sgilda_jira Sande Gilda (Inactive)
            sgilda_jira Sande Gilda (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: