[rules-users] Does rule execution block when the Knowlege Agent is rebuild KnowlegeBase???

Pegram, Macon zmpegram at choosehmc.com
Wed Jan 27 08:48:03 EST 2010


We've tested this behavior under load and there is a brief (duration of
about 1 - 1.5 seconds) uptick when the rulebase switch happens, but we
noticed consistent and rapid recovery.

I have not confirmed this but I believe what happens is a new
KnowledgeBase is built, and once it's build is complete, it does a swap
which causes the brief uptick.   I don't believe there's any blocking
going on while the KnowledgeBase is built however.

Macon

-----Original Message-----
From: rules-users-bounces at lists.jboss.org
[mailto:rules-users-bounces at lists.jboss.org] On Behalf Of Wing
Sent: Tuesday, January 26, 2010 7:10 PM
To: rules-users at lists.jboss.org
Subject: [rules-users] Does rule execution block when the Knowlege Agent
is rebuild KnowlegeBase???


Hello Drools User,

I am using Knowlege Agent to monitor changes in the repository.  I have
started the following services:

ResourceFactory.getResourceChangeNotifierService().start();
ResourceFactory.getResourceChangeScannerService().start();

I was able to change the rules in the repository and the changes did get
pick up in my application and everything is working fine as expected.

However, I have a question regarding rule execution when the Knowlege
Base
is in the middle of being build by the Knowlege Agent.   What happen
when I
execute the rules using:

ksessionStateless = knowledgeAgent.newStatelessKnowledgeSession();
ksessionStateless.execute(ObjList);

Will the method ksessionStateless.execute(ObjList) block and wait until
the
Knowlege Base is finish being build by the knowledge agent or the method
won't block and just pick up the old Knowlege Base and then switch to
the
new knowlege base when the knowlege agent is finish building it?  Will
the
method ksessionStateless.execute(ObjList) block or not block?

thanks very much in advace for any help on this!

Wing Tang





-- 
View this message in context:
http://n3.nabble.com/Does-rule-execution-block-when-the-Knowlege-Agent-i
s-rebuild-KnowlegeBase-tp139987p139987.html
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users




More information about the rules-users mailing list