sreeramk82 [
https://community.jboss.org/people/sreeramk82] created the discussion
"Re: jbpm 5.3 - kSession.dispose() - Error: Session was previously disposed"
To view the discussion, visit:
https://community.jboss.org/message/776353#776353
--------------------------------------------------------------
EntityManagerFactory emf =
Persistence.createEntityManagerFactory("org.jbpm.persistence.jpa");
Environment env = EnvironmentFactory.newEnvironment();
env.set(EnvironmentName.TRANSACTION_MANAGER,
TransactionManagerServices.getTransactionManager());
env.set(EnvironmentName.ENTITY_MANAGER_FACTORY, emf);
ksession = JPAKnowledgeService.loadStatefulKnowledgeSession(sessionId,
kbase, null, env);
Try this
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/776353#776353]
Start a new discussion in jBPM at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]