This content has been marked as final.
Show 2 replies
-
1. Re: Retrieving KnowledgeAgent in Drools-Spring
pgoncalves Jul 5, 2012 10:11 AM (in response to devilkazuya99)Any news about this problem? I'm having the same issue...
Thanks
-
2. Re: Retrieving KnowledgeAgent in Drools-Spring
devilkazuya99 Jul 5, 2012 9:52 PM (in response to pgoncalves)I did think of configure my knowledgeSession as a spring bean and set it to prototype. Something like:
<bean id="ksession" class="org.drools.runtime.StatefulKnowledgeSession" scope="prototype">
....
....
</bean>
but I didn't try it. I still use the method mentioned above:
JPAKnowledgeService.loadStatefulKnowledgeSession(...)