Hi. <div>You can configure a Knowledge Agent in Drools-Server using spring. You have to declare it in knowledge-services.xml config file. You need to do something like:</div><div><br></div><div><drools:kagent id="kagent1" kbase="kbase1" new-instance="false"></div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span><drools:resources><span class="Apple-tab-span" style="white-space:pre">        </span> <span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span> <drools:resource type="DRL" source="file:/some/path/to/apache-tomcat-7.0.6/webapps/drools-server/WEB-INF/classes/test.drl"/></div>
<div> <drools:resource type="PKG" source="<a href="http://somehost:8080/droolg-guvnor/.../LATEST">http://somehost:8080/droolg-guvnor/.../LATEST</a>"/></div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>
</drools:resources></div><div></drools:kagent> </div><div><br></div><div>For configure the scan interval, you can use:</div><div><br></div><div><drools:resource-change-scanner id="s1" interval="5" /></div>
<div><br></div><div>There are, though, some caveats:</div><div><ul><li>If you are deploying drools-server in tomcat, then you can't use classpath resources in the kagent. I have reported this problem today.</li><li>drools-server doesn't start <meta http-equiv="content-type" content="text/html; charset=utf-8">ResourceChangeNotifierService nor ResourceChangeScannerService automatically. You need to hack some way to invoke ResourceFactory.getResourceChangeNotifierService().start(); and ResourceFactory.getResourceChangeScannerService().start();. I was thinking in a Servlet that calls these methods in its init() method.</li>
</ul><div>Best Regards,</div><div><br></div>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>- Developer @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com </a><br>- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>
<br><br><div class="gmail_quote">2011/4/15 Manuel Ortiz <span dir="ltr"><<a href="mailto:manuel.ortizramos@gmail.com">manuel.ortizramos@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello everybody:<div><br></div><div>I am taking a look at Drools Integration documentation to understand how Drools server works and how can be used, and have a doubt concerning, let's say... 'KnowledgeAgent capabilities'. Does Drools server support on the fly rule updating as when using KnowledgeAgent to create KnowledgeBase objects? If it does, where can be configured 'KnowledgeAgent related' properties such as newInstance or resource scanner interval?</div>
<div><br></div><div>Thank you in advance for your time.</div><div><br></div><div>Kind regards,</div><div><br></div><font color="#888888"><div>Manuel Ortiz.</div>
</font><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br></div>