FYI, with drools 5.1.0.CR1:
edit your ".rf" file with an xml editor and in the "header" section,
add
your globals (spring beans):
<header>
<globals>
<global identifier="mySpringService"
type="myPackage.mySpringServiceInterface" />
</globals>
</header>
then in your spring configuration file, configure your knowledge session
like this:
<drools:ksession id="ksession" type="stateful"
kbase="kbase">
<drools:script>
<drools:set-global identifier="mySpringService"
ref="mySpringServiceBeanId" />
</drools:script>
</drools:ksession>
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Accessing-spring-bean...
Sent from the Drools - User mailing list archive at
Nabble.com.