[jboss-user] [jBPM] - Retrieving KnowledgeAgent in Drools-Spring

TC ONG do-not-reply at jboss.com
Thu May 31 03:29:15 EDT 2012


TC ONG [https://community.jboss.org/people/devilkazuya99] created the discussion

"Retrieving KnowledgeAgent in Drools-Spring"

To view the discussion, visit: https://community.jboss.org/message/738940#738940

--------------------------------------------------------------
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
[https://community.jboss.org/message/738940#738940]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120531/74f812bf/attachment-0001.html 


More information about the jboss-user mailing list