-
1. Re: Where to put configuration files when I configure the persistence for JBPM5
hadik Feb 13, 2012 4:23 AM (in response to liliana.iovanovici)Please use the following link that will give you some idea how to configure jbpm outside jbpm installer:
https://community.jboss.org/people/bpmn2user/blog/2011/12/18/jbpm5-web-example--local-human-task
and https://community.jboss.org/people/bpmn2user/blog/2011/09/21/jbpm5-web-example
-
2. Re: Where to put configuration files when I configure the persistence for JBPM5
liliana.iovanovici Feb 13, 2012 9:41 AM (in response to hadik)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.