Drools, as of version 5.0 doesn't provide out of the box integration with the Spring Framework. It is planned to be included in version 5.1+.
In this section, we'll perform our own integration.
We'll define the Spring
FactoryBean for creating
KnowledgeBase. The bean will be called
KnowledgeBaseFactoryBean. It will take a list of Spring resources and will build a knowledge base out of them. We've already seen the usage of this bean in Chapter 9, Sample Application where we created the validation knowledge base. To refresh our memory, here is another example that creates a loan approval knowledge base:
<bean name="loanApprovalKnowledge" class="droolsbook.integration.spring.KnowledgeBaseFactoryBean"> ...