[jboss-user] [jBPM] - Re: error running ksession.startProcess with Persistence

Odelya Holiday do-not-reply at jboss.com
Mon Feb 28 06:53:03 EST 2011


Odelya Holiday [http://community.jboss.org/people/odelyaholiday] created the discussion

"Re: error running ksession.startProcess with Persistence"

To view the discussion, visit: http://community.jboss.org/message/590040#590040

--------------------------------------------------------------
sure:


> EntityManagerFactory emf = Persistence.createEntityManagerFactory("org.drools.persistence.jpa");
>                     Environment env = KnowledgeBaseFactory.newEnvironment();
>                     env.set(EnvironmentName.ENTITY_MANAGER_FACTORY, emf);
>                     env.set(EnvironmentName.GLOBALS, new MapGlobalResolver());
>                     env.set(EnvironmentName.TRANSACTION_MANAGER, TransactionManagerServices.getTransactionManager());
>                     ksession = JPAKnowledgeService.newStatefulKnowledgeSession(kbase, null, env);
> 
I also updated my first post with the SQL that causes it
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/590040#590040]

Start a new discussion in jBPM at Community
[http://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/20110228/cd4e36ea/attachment.html 


More information about the jboss-user mailing list