[jboss-user] [jBPM] - Re: Where to put configuration files when I configure the persistence for JBPM5
liliana.iovanovici
do-not-reply at jboss.com
Mon Feb 13 09:41:12 EST 2012
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]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120213/2d7aa898/attachment.html
More information about the jboss-user
mailing list