<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>Starting resource change scanner and notifier in drools-server.</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>

<P><FONT SIZE=2>Hi,<BR>
<BR>
I would like to ask for help with setting up drools-server with Guvnor. I am using version 5.1.1 of both.<BR>
<BR>
I am trying to set up an instance of drools-server in Tomcat that periodically loads new updates of packages published in Guvnor (both drools-server and Guvnor run in the same instance of Tomcat).<BR>
<BR>
My change set definition is as follows:<BR>
<BR>
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<BR>
&lt;change-set xmlns='<A HREF="http://drools.org/drools-5.0/change-set'">http://drools.org/drools-5.0/change-set'</A><BR>
&nbsp; xmlns:xs='<A HREF="http://www.w3.org/2001/XMLSchema-instance'">http://www.w3.org/2001/XMLSchema-instance'</A><BR>
&nbsp; xs:schemaLocation='<A HREF="http://drools.org/drools-5.0/change-set">http://drools.org/drools-5.0/change-set</A><BR>
&nbsp; <A HREF="http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/main/resources/change-set-1.0.0.xsd'">http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/main/resources/change-set-1.0.0.xsd'</A>&gt;<BR>
&nbsp; &lt;add&gt;<BR>
&nbsp;&nbsp;&nbsp; &lt;resource source='<A HREF="http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/">http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/</A>&lt;one of my packages&gt;/LATEST'<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type='PKG' basicAuthentication=&quot;enabled&quot; username=&quot;&lt;username&gt;&quot; password=&quot;&quot; /&gt;<BR>
&nbsp;&nbsp;&nbsp; &lt;resource source=&quot;<A HREF="http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/">http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/</A>&lt;another of my packages&gt;/LATEST&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type=&quot;PKG&quot; basicAuthentication=&quot;enabled&quot; username=&quot;&lt;username&gt;&quot; password=&quot;&quot; /&gt;<BR>
&nbsp; &lt;/add&gt;<BR>
&lt;/change-set&gt;<BR>
<BR>
My knowledge-services.xml configuration is as follows (based on the unit test examples highlighted in http://article.gmane.org/gmane.comp.java.drools.user/20992/match=drools+spring):<BR>
<BR>
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<BR>
&lt;beans xmlns=&quot;<A HREF="http://www.springframework.org/schema/beans">http://www.springframework.org/schema/beans</A>&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns:xsi=&quot;<A HREF="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</A>&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns:drools=&quot;<A HREF="http://drools.org/schema/drools-spring">http://drools.org/schema/drools-spring</A>&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xsi:schemaLocation=&quot;<A HREF="http://www.springframework.org/schema/beans">http://www.springframework.org/schema/beans</A> <A HREF="http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">http://www.springframework.org/schema/beans/spring-beans-2.0.xsd</A><BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A HREF="http://drools.org/schema/drools-spring">http://drools.org/schema/drools-spring</A> <A HREF="http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-container/drools-spring/src/main/resources/org/drools/container/spring/drools-spring-1.0.0.xsd">http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-container/drools-spring/src/main/resources/org/drools/container/spring/drools-spring-1.0.0.xsd</A>&quot;&gt;<BR>
<BR>
&nbsp; &lt;drools:resource-change-scanner id=&quot;s1&quot; interval=&quot;5&quot; /&gt;<BR>
<BR>
&nbsp; &lt;drools:execution-node id=&quot;node1&quot; /&gt;<BR>
<BR>
&nbsp; &lt;drools:ksession id=&quot;ksession1&quot; type=&quot;stateless&quot; kbase=&quot;kbase1&quot; node=&quot;node1&quot;/&gt;<BR>
<BR>
&nbsp; &lt;drools:kbase id=&quot;kbase1&quot; node=&quot;node1&quot; /&gt;<BR>
<BR>
&nbsp; &lt;drools:kagent id=&quot;kagent1&quot; kbase=&quot;kbase1&quot;&gt;<BR>
&nbsp;&nbsp;&nbsp; &lt;drools:resources&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;drools:resource type=&quot;CHANGE_SET&quot; source=&quot;classpath:changeset.xml&quot; /&gt;<BR>
&nbsp;&nbsp;&nbsp; &lt;/drools:resources&gt;<BR>
&nbsp; &lt;/drools:kagent&gt;<BR>
&nbsp;<BR>
&lt;/beans&gt;<BR>
<BR>
On loading drools-server, the resources listed in the change set are loaded and available.<BR>
<BR>
The problem is that when a new package built and published in Guvnor, drools-server does not detect this and update itself. The effect is the same as if a KnowledgeAgent were used locally and<BR>
<BR>
&nbsp; ResourceFactory.getResourceChangeNotifierService().start();<BR>
&nbsp; ResourceFactory.getResourceChangeScannerService().start();<BR>
<BR>
were not called. This leads me to the assumption that drools-server does not start these services by default.<BR>
<BR>
My question is then can/how do I configure drools-server to start these services such that it will update new changes from Guvnor automatically?<BR>
<BR>
<BR>
Thanks a lot for any help you can offer,<BR>
<BR>
Cheers,<BR>
<BR>
Graham.<BR>
</FONT>
</P>

</BODY>
</HTML>