liliana.iovanovici [https://community.jboss.org/people/liliana.iovanovici] 
created the discussion

"Re: Where to put configuration files when I configure the persistence for 
JBPM5"

To view the discussion, visit: https://community.jboss.org/message/716202#716202

--------------------------------------------------------------
Hi,

I just want to start a process using persistence. (for begining: not using 
Human Taks, or an Application Server). I allready wrote the code for this: 

EntityManagerFactory emf = 
Persistence.createEntityManagerFactory("org.jbpm.persistence.jpa");
Environment env = KnowledgeBaseFactory.newEnvironment();
env.set(EnvironmentName.ENTITY_MANAGER_FACTORY, emf);
StatefulKnowledgeSession ksession = 
JPAKnowledgeService.newStatefulKnowledgeSession(kbase, null, env);
ksession.startProcess(processId);


But I am wondering how to tell this process about location of my configuration 
files: jBPM.properties, persistence.xml ? 
Also I need to use hibernate ?

Thanks.
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to