3 Replies Latest reply on Jan 21, 2013 10:35 AM by y lab

    JBPM5 database empty

    y lab Newbie


      I use persistence jpa with my JBPM5 application.

      after starting a process, all  work fine but the database is empty , any idea ?


      here how i start my process


           emf = Persistence.createEntityManagerFactory("org.jbpm.persistence.jpa");

                              kbase = readKnowledgeBase();

                              Environment env = KnowledgeBaseFactory.newEnvironment();

                              env.set(EnvironmentName.ENTITY_MANAGER_FACTORY, emf);


           session = JPAKnowledgeService.newStatefulKnowledgeSession(kbase, null,env);



      and my persitence.xml in PJ.


      Thanks for your helps