使用Guvnor Drool 5.5时,相同的代码工作,我更新到流口水5.6.Final它停止运行知识库的运行时更新。
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();
请帮帮我。