2 Replies Latest reply on Jul 5, 2012 9:52 PM by devilkazuya99

    Retrieving KnowledgeAgent in Drools-Spring

    devilkazuya99

      I configured drools-spring with knowledgeAgent + persistence. Because i setting looks like this:

      <drools:ksession id="jpaSingleSessionCommandService" type="stateful" kbase="kbase">

      Eveerytime I started my tomcat, it creates a new ksession and a record in SessionInfo table. So it strikes me in the head that by configure my ksession this way, I can't reclaim my previous session at all. Silly me.

      Now my question is, is it possible to reclaim my previous session (as code below) using the drools-spring way or I can only do it programatically?

      StatefulKnowledgeSession ksession =  
          JBPMHelper.loadStatefulKnowledgeSession(kbase, sessionId);