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>&lt;drools:kagent id=&quot;kagent1&quot; kbase=&quot;kbase1&quot; new-instance=&quot;false&quot;&gt;</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>&lt;drools:resources&gt;<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>    &lt;drools:resource  type=&quot;DRL&quot; source=&quot;file:/some/path/to/apache-tomcat-7.0.6/webapps/drools-server/WEB-INF/classes/test.drl&quot;/&gt;</div>

<div>            &lt;drools:resource  type=&quot;PKG&quot; source=&quot;<a href="http://somehost:8080/droolg-guvnor/.../LATEST">http://somehost:8080/droolg-guvnor/.../LATEST</a>&quot;/&gt;</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>

         &lt;/drools:resources&gt;</div><div>&lt;/drools:kagent&gt; </div><div><br></div><div>For configure the scan interval, you can use:</div><div><br></div><div>&lt;drools:resource-change-scanner id=&quot;s1&quot; interval=&quot;5&quot; /&gt;</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&#39;t use classpath resources in the kagent. I have reported this problem today.</li><li>drools-server doesn&#39;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">&lt;<a href="mailto:manuel.ortizramos@gmail.com">manuel.ortizramos@gmail.com</a>&gt;</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&#39;s say... &#39;KnowledgeAgent capabilities&#39;. Does Drools server support on the fly rule updating as when using KnowledgeAgent to create KnowledgeBase objects? If it does, where can be configured &#39;KnowledgeAgent related&#39; 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>