[rules-users] Accessing spring beans
OptimusPrime
the.maxxxx at gmail.com
Thu Jul 29 11:16:17 EDT 2010
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-beans-tp980991p1004381.html
Sent from the Drools - User mailing list archive at Nabble.com.
More information about the rules-users
mailing list