<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hi,</DIV>
<DIV>I've also faced the same problem.</DIV>
<DIV>Hope somebody&nbsp;could give a hint.</DIV>
<DIV>&nbsp;</DIV>
<DIV>thanks &amp; best,</DIV>
<DIV>milan<BR><BR>--- On <B>Mon, 20/9/10, Graham Thomson <I>&lt;gthomson@fizzback.com&gt;</I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="BORDER-LEFT: rgb(16,16,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px"><BR>From: Graham Thomson &lt;gthomson@fizzback.com&gt;<BR>Subject: [rules-users] Starting resource change scanner and notifier in drools-server.<BR>To: rules-users@lists.jboss.org<BR>Date: Monday, 20 September, 2010, 15:24<BR><BR>
<DIV id=yiv1756299484><BR>
<DIV><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="1.0" encoding="UTF-8"?&gt;<BR>&lt;change-set xmlns='<A href="http://drools.org/drools-5.0/change-set'" rel=nofollow target=_blank>http://drools.org/drools-5.0/change-set'</A><BR>&nbsp; xmlns:xs='<A href="http://www.w3.org/2001/XMLSchema-instance'" rel=nofollow target=_blank>http://www.w3.org/2001/XMLSchema-instance'</A><BR>&nbsp; xs:schemaLocation='<A href="http://drools.org/drools-5.0/change-set" rel=nofollow target=_blank>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'" rel=nofollow target=_blank>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/" rel=nofollow target=_blank>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="enabled" username="&lt;username&gt;" password="" /&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;resource source="<A  href="http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/" rel=nofollow target=_blank>http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/</A>&lt;another of my packages&gt;/LATEST"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 type="PKG" basicAuthentication="enabled" username="&lt;username&gt;" password="" /&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="1.0" encoding="UTF-8"?&gt;<BR>&lt;beans xmlns="<A href="http://www.springframework.org/schema/beans" rel=nofollow target=_blank>http://www.springframework.org/schema/beans</A>"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns:xsi="<A href="http://www.w3.org/2001/XMLSchema-instance" rel=nofollow target=_blank>http://www.w3.org/2001/XMLSchema-instance</A>"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns:drools="<A href="http://drools.org/schema/drools-spring" rel=nofollow target=_blank>http://drools.org/schema/drools-spring</A>"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 xsi:schemaLocation="<A href="http://www.springframework.org/schema/beans" rel=nofollow target=_blank>http://www.springframework.org/schema/beans</A> <A href="http://www.springframework.org/schema/beans/spring-beans-2.0.xsd" rel=nofollow target=_blank>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" rel=nofollow target=_blank>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" rel=nofollow
 target=_blank>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>"&gt;<BR><BR>&nbsp; &lt;drools:resource-change-scanner id="s1" interval="5" /&gt;<BR><BR>&nbsp; &lt;drools:execution-node id="node1" /&gt;<BR><BR>&nbsp; &lt;drools:ksession id="ksession1" type="stateless" kbase="kbase1" node="node1"/&gt;<BR><BR>&nbsp; &lt;drools:kbase id="kbase1" node="node1" /&gt;<BR><BR>&nbsp; &lt;drools:kagent id="kagent1" kbase="kbase1"&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;drools:resources&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;drools:resource type="CHANGE_SET" source="classpath:changeset.xml" /&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></DIV></DIV><BR>-----Inline Attachment Follows-----<BR><BR>
<DIV class=plainMail>_______________________________________________<BR>rules-users mailing list<BR><A href="http://uk.mc255.mail.yahoo.com/mc/compose?to=rules-users@lists.jboss.org" ymailto="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></DIV></BLOCKQUOTE></td></tr></table><br>