[jboss-user] [jBPM] - Re: jbpm 5.3 - kSession.dispose() - Error: Session was previously disposed

sreeramk82 do-not-reply at jboss.com
Wed Nov 14 02:06:26 EST 2012


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&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20121114/b2a61950/attachment.html 


More information about the jboss-user mailing list