Even if I create a spring integration file it doesn't directly injects the objects i.e. if I use @Inject annotation it throws no qualifying bean exception, but it works if I inject an application context bean and then try to getBean using context.getBean("beanName") method.

Note:- bean name is same what I give in @KBase annotation.

Moreover if my drl or rdrl files are in a jar which I imported through maven in my project it doesn't load the rules in that Kie Base it just creates a new KieBase object with no rules.
But if I put my drl files directly into my resources folder than it works just fine and all rules are fired.


On Sun, Jul 6, 2014 at 8:06 PM, vinodkiran [via Drools] <[hidden email]> wrote:
If you are using kie-spring, you need a spring XML and not a kmodule.xml

https://github.com/droolsjbpm/droolsjbpm-integration/blob/master/kie-spring/src/test/resources/org/kie/spring/beans-internal2.xml


if you are using kie-spring-annotations, please look at

https://github.com/droolsjbpm/droolsjbpm-integration/blob/master/kie-spring/src/test/java/org/kie/spring/beans/annotations/NamedKieBean.java


-Vinod


If you reply to this email, your message will be added to the discussion below:
http://drools.46999.n3.nabble.com/Kie-Spring-integration-tp4030243p4030246.html
To unsubscribe from Kie Spring integration, click here.
NAML



View this message in context: Re: Kie Spring integration
Sent from the Drools: User forum mailing list archive at Nabble.com.