JBoss Community

Retrieving KnowledgeAgent in Drools-Spring

created by TC ONG in jBPM - View the full discussion

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. :p

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);


Reply to this message by going to Community

Start a new discussion in jBPM at Community