a few weeks ago, I made some minor changes to
org.drools.spring.RuleBaseFactoryBean to be able to add rule sets from
.drl files in the class path and urls like this:
<bean id="drlRuleBase"
class="org.drools.spring.factory.RuleBaseFactoryBean">
<property name="drlFiles">
<list>
<value>r1.drl</value>
<value>r2.drl</value>
</list>
</property>
</bean>
<bean id="urlRuleBase"
class="org.drools.spring.factory.RuleBaseFactoryBean">
<property name="urls">
<list>
<value>http://server/local/r1</value>
<value>http://neverland/local/r2</value>
</list>
</property>
</bean>
I sent the code to the folks around Marc Procter. They told me the
changes will be part of future releases, but obviously not 2.5-beta.
Also, I can't find it in the CVS repository. If you are interested, let
me know.
Armin
Ronald R. DiFrango wrote:
All,
I have seen some mention on the mailing lists of using Spring to inject the
Rules base [even if other Spring support will be removed], and I was
wondering if anyone has an example of doing this?
Thanks in advance,
Ron