[rules-dev] KnowledgeBaseEvent on KnowledgeAgent

Michael Neale michael.neale at gmail.com
Tue May 25 18:56:13 EDT 2010


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).

On Wed, May 26, 2010 at 12:47 AM, Mohamed BEN AYED
<mohamed.ensi at gmail.com>wrote:

>
> Hi,
>
> I have 2 questions:
> 1) I used KnowledgeAgent as following
>  KnowledgeBase kbase=KnowledgeBaseFactory.newKnowledgeBase();
> KnowledgeAgent  agent =
> KnowledgeAgentFactory.newKnowledgeAgent("myagent",kbase,aconf);
> when I do, StatefulKnowledgeSession session
> =kbase.newStatefulKnowledgeSession();
>               session.firAllRules();
> nothing is happening! ==> so I should add kbase=agent.getKnowledgeBAse();
> what's the meaning of "kbase" in KnowledgeAgent parameters??
>
> 2) I am trying to use KnowledgeBaseEventListener. I add this line,
> kbase.addKnwledgeBaseEventListener(new .....) but I didn't have any result
> why?
>
> Regards
> --
> View this message in context:
> http://drools-java-rules-engine.46999.n3.nabble.com/KnowledgeBaseEvent-on-KnowledgeAgent-tp842269p842269.html
> Sent from the Drools - Dev mailing list archive at Nabble.com.
> _______________________________________________
> rules-dev mailing list
> rules-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-dev
>



-- 
Michael D Neale
home: www.michaelneale.net
blog: michaelneale.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-dev/attachments/20100526/943b757f/attachment.html 


More information about the rules-dev mailing list