0 Replies Latest reply on Jul 28, 2015 9:52 AM by Maulee Parikh

    Knowledge Session strategy in jbpm 5.3

    Maulee Parikh Newbie



      We are creating ksession in following way.  We are facing concurrency issues like jbpm task are not created sometimes or jbpm tables went in nonresistance state. We are using jbpm5.3.1. What strategy we need to follow to get knowledge session.


      1. What are the different options for implementation as KnowledgeBase is not thread safe ?

      2. Do we need to flush the sessions explicitly ? Session flush will not create any concurrency issues ?


      private StatefulKnowledgeSession createKnowledgeSession() {

        KnowledgeBase kbase = getKnowledgeBase();


        final KnowledgeSessionConfiguration conf = KnowledgeBaseFactory



        Environment env = createEnvironment();

        StatefulKnowledgeSession ksession = JPAKnowledgeService.newStatefulKnowledgeSession(kbase, conf,


        new JPAWorkingMemoryDbLogger(ksession);

        return ksession;



      Any quick pointer will be really helpful.