I think you need to start the listener service up - which I can't remember how to do off the top of my head (ie if it is listening but really polling for changes). <br><br><div class="gmail_quote">On Wed, May 26, 2010 at 12:47 AM, Mohamed BEN AYED <span dir="ltr"><<a href="mailto:mohamed.ensi@gmail.com">mohamed.ensi@gmail.com</a>></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 have 2 questions:<br>
1) I used KnowledgeAgent as following<br>
KnowledgeBase kbase=KnowledgeBaseFactory.newKnowledgeBase();<br>
KnowledgeAgent agent =<br>
KnowledgeAgentFactory.newKnowledgeAgent("myagent",kbase,aconf);<br>
when I do, StatefulKnowledgeSession session<br>
=kbase.newStatefulKnowledgeSession();<br>
session.firAllRules();<br>
nothing is happening! ==> so I should add kbase=agent.getKnowledgeBAse();<br>
what's the meaning of "kbase" in KnowledgeAgent parameters??<br>
<br>
2) I am trying to use KnowledgeBaseEventListener. I add this line,<br>
kbase.addKnwledgeBaseEventListener(new .....) but I didn't have any result<br>
why?<br>
<br>
Regards<br>
<font color="#888888">--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/KnowledgeBaseEvent-on-KnowledgeAgent-tp842269p842269.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/KnowledgeBaseEvent-on-KnowledgeAgent-tp842269p842269.html</a><br>
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>
</font></blockquote></div><br><br clear="all"><br>-- <br>Michael D Neale<br>home: <a href="http://www.michaelneale.net">www.michaelneale.net</a><br>blog: <a href="http://michaelneale.blogspot.com">michaelneale.blogspot.com</a><br>