JBoss Community

Re: jbpm 5.3 - kSession.dispose() - Error: Session was previously disposed

created by sreeramk82 in jBPM - View the full discussion

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

Start a new discussion in jBPM at Community