0 Replies Latest reply on Jul 14, 2014 5:02 AM by Ahamed M M

    Named KieSession with JPAKnowledgeService

    Ahamed M M Newbie

      I am able to get JPA persisted **default** KieSession with

         JPAKnowledgeService.newStatefulKnowledgeSession(kBase, null, env);


      How to create a JPA persisted **named** KieSession with the same `JPAKnowledgeService`?


      Is there some option that I have to set in `KieSessionConfiguration` ?


            KieSessionConfiguration ksconf = kieServices.newKieSessionConfiguration();

            ksconf.setProperty("drools.kieSession.name", sessionName); // What is the property name ?

            KieSession session=JPAKnowledgeService.newStatefulKnowledgeSession(kBase,ksconf,env);


      I see that there are some properties like `drools.keepReference`, `drools.queryListener`.

      Is there a property/way to specify the name of the `KieSession` to be built in  `KieSessionConfiguration`?


      Env: Drools v 6.0.1.Final