JBoss Community

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

created by liliana.iovanovici in jBPM - View the full discussion

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

Start a new discussion in jBPM at Community