Here's what I do:
We inject KnowledgeBases into our app using Spring. It was a simple matter
of just implementing a builder class that takes a bunch of drools Resources
and adding a build() method to create the KnowledgeBase and then creating a
class that implements Spring FactoryBean and InitializingBean to construct
the builder and convert Spring resources to Drools ones and calling the
builder.build() method in the afterPropertiesSet().
There is one currently open bug in drools that means we have to cast to a
class from the old api to add accumulate functions.
cheers
Steve
2009/4/3 Abu Rasheed <aburasheed(a)studentmasjid.com>
Are there any plans to have Spring support in drools-api? The last
mail
that I saw in searching the topic is dated last year, and there are no new
postings related to this.
Does anyone have any success in injecting KnowledgeBase into their apps
using Spring? Is there any examples out there that I can refer to?
Thanks
_______________________________________________
rules-dev mailing list
rules-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev