Same code is working when using Guvnor Drools 5.5, after I updated to drools
5.6.Final it stopped working of runtime update of knowledgebase.
KnowledgeAgentConfiguration kaconf =
KnowledgeAgentFactory.newKnowledgeAgentConfiguration();
kaconf.setProperty( "drools.agent.scanDirectories","false" );
KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent( name,
kaconf );
// moniter KnowledgeAgent
kagent.monitorResourceChangeEvents(true);
kagent.addEventListener(new KBaseChangeEventListener());
kagent.applyChangeSet(
ResourceFactory.newClassPathResource("META-INF/ChangeSet.xml") );
startResourceChangeScannerService();
startResourceChangeNotifierService();
kbase = kAgent.getKnowledgeBase();
Please help me.
--
View this message in context:
http://drools.46999.n3.nabble.com/Guvnor-Drools-5-6-Final-Not-working-dyn...
Sent from the Drools: Developer (committer) mailing list mailing list archive at
Nabble.com.