<div dir="ltr">Even if I create a spring integration file it doesn&#39;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(&quot;beanName&quot;) method.<div>
<br></div><div>Note:- bean name is same what I give in @KBase annotation.</div><div><br></div><div>Moreover if my drl or rdrl files are in a jar which I imported through maven in my project it doesn&#39;t load the rules in that Kie Base it just creates a new KieBase object with no rules.</div>
<div>But if I put my drl files directly into my resources folder than it works just fine and all rules are fired.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jul 6, 2014 at 8:06 PM, vinodkiran [via Drools] <span dir="ltr">&lt;<a href="/user/SendEmail.jtp?type=node&node=4030248&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt;</span> wrote:<br>
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

        If you are using kie-spring, you need a spring XML and not a kmodule.xml
<br><br><a href="https://github.com/droolsjbpm/droolsjbpm-integration/blob/master/kie-spring/src/test/resources/org/kie/spring/beans-internal2.xml" rel="nofollow" link="external" target="_blank">https://github.com/droolsjbpm/droolsjbpm-integration/blob/master/kie-spring/src/test/resources/org/kie/spring/beans-internal2.xml</a><br>
<br><br>if you are using kie-spring-annotations, please look at 
<br><br><a href="https://github.com/droolsjbpm/droolsjbpm-integration/blob/master/kie-spring/src/test/java/org/kie/spring/beans/annotations/NamedKieBean.java" rel="nofollow" link="external" target="_blank">https://github.com/droolsjbpm/droolsjbpm-integration/blob/master/kie-spring/src/test/java/org/kie/spring/beans/annotations/NamedKieBean.java</a><br>
<br><br>-Vinod

        
        
        
        <br>
        <br>
        <hr noshade size="1" color="#cccccc">
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://drools.46999.n3.nabble.com/Kie-Spring-integration-tp4030243p4030246.html" target="_blank" rel="nofollow" link="external">http://drools.46999.n3.nabble.com/Kie-Spring-integration-tp4030243p4030246.html</a>
        </div>
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from Kie Spring integration, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>

                <a href="http://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&amp;id=instant_html%21nabble%3Aemail.naml&amp;base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&amp;breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
        </div></blockquote></div><br></div>


        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://drools.46999.n3.nabble.com/Kie-Spring-integration-tp4030243p4030248.html">Re: Kie Spring integration</a><br/>
Sent from the <a href="http://drools.46999.n3.nabble.com/Drools-User-forum-f47000.html">Drools: User forum mailing list archive</a> at Nabble.com.<br/>