HHH-11232 - Session is closed bug with Envers 5.2.x + JTA
This commit is contained in:
parent
c17c1b5aae
commit
b14e69089f
|
@ -134,7 +134,7 @@ public class AuditProcess implements BeforeTransactionCompletionProcess {
|
|||
}
|
||||
|
||||
// see: http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4178431
|
||||
if ( FlushModeType.COMMIT.equals( session.getFlushMode() ) ) {
|
||||
if ( FlushModeType.COMMIT.equals( session.getFlushMode() ) || session.isClosed() ) {
|
||||
Session temporarySession = null;
|
||||
try {
|
||||
temporarySession = session.sessionWithOptions()
|
||||
|
|
Loading…
Reference in New Issue