<FONT face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size=2><P>I actually got this working while I was trying out last time.<BR>In your codes where you created the statefulknowledgesession, you need to do the following..</P><P>ResourceChangeScannerConfiguration sconf = ResourceFactory.getResourceChangeScannerService().newResourceChangeScannerConfiguration();<BR>sconf.setProperty("drools.resource.scanner.interval", "50");<BR>ResourceFactory.getResourceChangeScannerService().configure(sconf);</P><P>KnowledgeAgentConfiguration kaconf = KnowledgeAgentFactory.newKnowledgeAgentConfiguration();<BR>kaconf.setProperty("drools.agent.scanDirectories", "true");<BR>kaconf.setProperty("drools.agent.scanResources", "true");<BR>kaconf.setProperty("drools.agent.newAgent", "true");<BR>KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent("myagent", kaconf);<BR>kagent.applyChangeSet( ResourceFactory.newUrlResource(new URL("....changeset.xml")) );</P><P>ResourceFactory.getResourceChangeNotifierService().start();<BR>ResourceFactory.getResourceChangeScannerService().start();</P><P>etc etc etc<BR></P><DIV><EM></EM><BR></DIV><FONT color=#990099>-----rules-users-bounces@lists.jboss.org wrote: -----<BR><BR></FONT><BLOCKQUOTE style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">To: "rules-users@lists.jboss.org" &lt;rules-users@lists.jboss.org&gt;<BR>From: Pardeep Ruhil &lt;Pardeep.Ruhil@lntinfotech.com&gt;<BR>Sent by: rules-users-bounces@lists.jboss.org<BR>Date: 01/12/2010 11:13AM<BR>Subject: [rules-users] Drools Doubt regarding ChangeSet.xml file use<BR><BR><DIV class=Section1><P class=MsoPlainText>Hi, <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></P><P class=MsoPlainText>I have a doubt regarding Drools changeSet.xml file. <o:p></o:p></P><P class=MsoPlainText>As in ChangeSet.xml file we define or give the URL/PCK/file Path&nbsp; to read our Rule file or workflow file. <o:p></o:p></P><P class=MsoPlainText>Now Lets suppose I have an application deployed and is runnning using Drools Workflow. <o:p></o:p></P><P class=MsoPlainText>Now I change the workflow file(.rf) file. <o:p></o:p></P><P class=MsoPlainText>So my doubt is: <o:p></o:p></P><P class=MsoPlainText>1.&nbsp; Do I need to redeploy/restart the application as to incorporate the changed workflow ? <o:p></o:p></P><P class=MsoPlainText>2. Will the KnowledgeBase automatically get notified of the change of the workflow ? <o:p></o:p></P><P class=MsoPlainText>3.&nbsp; Will the StatefullKnowledge session object&nbsp; will get notified about the changed workflow or do I need to create <o:p></o:p></P><P class=MsoPlainText>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; new StatefullKnowledge session ? <o:p></o:p></P><P class=MsoPlainText><o:p>&nbsp; </o:p></P><P class=MsoPlainText><o:p>&nbsp; </o:p></P><P class=MsoPlainText>I read the documentation , In that I got to know about KnowledgeAgent class, which automatically checks for any change in the workflow/ rule&nbsp; file. i.e. 60 sec(default). <o:p></o:p></P><P class=MsoPlainText>Will this class will fulfill my doubts ? <o:p></o:p></P><P class=MsoNormal><o:p>&nbsp; </o:p></P><P class=MsoNormal><o:p>&nbsp; </o:p></P><P class=MsoNormal>Thanks &amp; Regards <o:p></o:p></P><P class=MsoNormal>Pradeep Ruhil <o:p></o:p></P></DIV><BR><HR><FONT color=black size=3 face="Arial,Default Sans Serif,Verdana,Arial,Helvetica,sans-serif">This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. <BR></FONT><BR>______________________________________________________________________ <BR><FONT size=2 face="Default Monospace,Courier New,Courier,monospace">_______________________________________________<BR>rules-users mailing list<BR>rules-users@lists.jboss.org<BR><A href="https://lists.jboss.org/mailman/listinfo/rules-users" target=blank>https://lists.jboss.org/mailman/listinfo/rules-users</A><BR></FONT></BLOCKQUOTE><BR></FONT>