<div><div>Can you please paste the change-set you are using?</div><div><br></div><div>Best,</div><br><div class="gmail_quote">On Wed, May 26, 2010 at 11:57 AM, Mohamed BEN AYED <span dir="ltr">&lt;<a href="mailto:mohamed.ensi@gmail.com">mohamed.ensi@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
hi,<br>
<br>
I try every solution but the problem persist, I do the following<br>
<br>
KnowledgeAgentConfiguration<br>
aconf=KnowledgeAgentFactory.newKnowledgeAgentConfiguration();<br>
<br>
        aconf.setProperty(&quot;drools.agent.newInstance&quot;, &quot;false&quot;);<br>
         KnowledgeBase kbase=KnowledgeBaseFactory.newKnowledgeBase();<br>
        kbase.addEventListener(new KnowledgeBaseEventListener.....);<br>
<br>
I add a listener for a KnowledgeBAse<br>
<div class="im"><br>
 KnowledgeAgent  agent =<br>
KnowledgeAgentFactory.newKnowledgeAgent(&quot;myagent&quot;,kbase,aconf);<br>
<br>
</div>I passed a kbase in the KnowledgeAgent parameter to apply the KnowledgeBase<br>
to this parameter<br>
<br>
agent.applyChangeSet(ResourceFactory.newInputStr....);<br>
<br>
StatefulKnowledgeSession session=kbase.newStatefulKnowledgeSession();<br>
session.fireAllRules();<br>
<br>
what I  get was nothing: the listener was not applyed and the KnowledgeBAse<br>
was not created<br>
<font color="#888888">--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/KnowledgeBaseEvent-on-KnowledgeAgent-tp842269p845072.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/KnowledgeBaseEvent-on-KnowledgeAgent-tp842269p845072.html</a><br>


</font><div><div></div><div class="h5">Sent from the Drools - Dev mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>
</div>