10-17-2016 11:59 AM
conf.setJpaHandleTransaction(true);
conf.setJpaCloseEntityManager(true);
org.activiti.engine.impl.variable.EntityManagerSessionImpl.close()
.
if (closeEntityManager && entityManager != null && !entityManager.isOpen()) {
try {
entityManager.close();
} catch (IllegalStateException ise) {
throw new ActivitiException("Error while closing EntityManager, may have already been closed or it is container-managed", ise);
}
}
Is this intended? Checking for the entityManager to be not open prior to closing it? Shouldn’t it check for the entityManager to be open?
if (closeEntityManager && entityManager != null && entityManager.isOpen()) {
11-08-2016 04:29 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.