JBoss Community

Re: Retrieving KnowledgeAgent in Drools-Spring

created by TC ONG in jBPM - View the full discussion

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(...)

Reply to this message by going to Community

Start a new discussion in jBPM at Community