-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
-
-
-
-
-
https://gitlab.cee.redhat.com/red-hat-jboss-enterprise-application-platform-documentation/eap-documentation/merge_requests/1298, https://gitlab.cee.redhat.com/red-hat-jboss-enterprise-application-platform-documentation/eap-documentation/merge_requests/1305, https://gitlab.cee.redhat.com/red-hat-jboss-enterprise-application-platform-documentation/eap-documentation/merge_requests/1328
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