使用 Guvnor Drool 5.5 时,相同的代码正在工作,在我更新到 drool 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();
请帮我。