hi ,
i have the changeset file as below for scanning the directory of drl
files.
<change-set
xmlns="http://drools.org/drools-5.0/change-set"
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
xs:schemaLocation="http://drools.org/drools-5.0/change-set
http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/...
<add>
<resource source="file:/D:/users/myrules" type="DRL"/>
</add>
</change-set>
Here, i have my agent configuration code.
KnowledgeAgentConfiguration kaconf =
KnowledgeAgentFactory.newKnowledgeAgentConfiguration();
kaconf.setProperty( "drools.agent.scanDirectories","true" );
kaconf.setProperty( "drools.agent.newInstance","false" );
kagent =KnowledgeAgentFactory.newKnowledgeAgent( "test agent", kaconf );
System.out.println("Before Applying ChangeSet");
kagent.applyChangeSet(ResourceFactory.newFileResource("D:/users/ChangeSet.xml"));
System.out.println("After Applying Change Set");
ResourceChangeScannerConfiguration sconf =
ResourceFactory.getResourceChangeScannerService().newResourceChangeScannerConfiguration();
sconf.setProperty("drools.resource.scanner.interval", "5");
ResourceFactory.getResourceChangeScannerService().configure(sconf);
ResourceFactory.getResourceChangeNotifierService().start();
ResourceFactory.getResourceChangeScannerService().start();
It loads the drl files. But when i made changes to a drl file, it is not
reflected.
can anyone help me to find out the solution .
thanks in advance....
--
View this message in context:
http://drools.46999.n3.nabble.com/Changes-are-not-reflected-tp3917286p391...
Sent from the Drools: User forum mailing list archive at
Nabble.com.