Mayank,
Can you try adding the ksession tag?
<kie:kmodule id="kieModule">
<kie:kbase name="validationRulesKBase"
packages="com.acme.rules">
<kie:ksession name="ksession1" type="stateless"/>
</kie:kbase>
</kie:kmodule>
Also, can you post the relevant sections of the console log?
- Vinod
From: Mayank <mayank.kumar(a)gmail.com>
Subject: [rules-users] Unable to have KBase recognize our DRL files
Date: 27 December 2013 02:50:59 GMT
To: rules-users(a)lists.jboss.org
Reply-To: Rules Users List <rules-users(a)lists.jboss.org>
Hi,
We are in the process of upgrading Drools in our application. Until 5.x the
following spring configuration used to work well for us:
<drools:kbase id="validationRulesKBase">
<drools:resources>
<drools:resource type="DRL"
source="classpath:rules/trade/rule1.drl" />
<drools:resource type="DRL"
source="classpath:rules/trade/rule2.drl" />
</drools:resources>
</drools:kbase>
With an inejection of this KnowledgeBase, we would create a stateless
session and
fire all rules after inserting appropriate facts and globals.
After upgrading to Drools 6, our DRL files don't seem to be getting picked
up
in the knowledge base - we are using the following spring configuration:
<bean id="kiePostProcessor"
class="org.kie.spring.KModuleBeanFactoryPostProcessor"/>
<kie:kmodule id="kieModule">
<kie:kbase name="validationRulesKBase"
packages="com.acme.rules"/>
</kie:kmodule>
This KnowledgeBase gets injected in our code but it doesn't seem to pick up
the
DRL files in the specified package. We have ensure that the drl files are
under src/main/resources/com/acme/rules and that package is specified in each
DRL file at the top.
Am I missing something in this new configuration?
thnx,
-mayank
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users