Eric,<div><br></div><div>Thanks for your help.  I was never able to get the Drools Spring Resource Scanner to work.  Instead I changed my Spring beans to use a KnowledgeAgent similar to the code you&#39;ve outlined below and it&#39;s working.</div>
<div><br></div><div>Jason<br><br><div class="gmail_quote">On Thu, Nov 4, 2010 at 9:50 AM, etfink123 <span dir="ltr">&lt;<a href="mailto:fink_eric@bah.com">fink_eric@bah.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Jason,<br>
<br>
Your&#39;s sound slightly different in that you have not been able to<br>
successfully fire up your KnowledgeBase at all.<br>
<br>
Mine works, but fails once an invalid DRL file is read.<br>
<br>
In any case, I am not use PKG for my ChangeSet resources:<br>
<br>
&lt;change-set xmlns=&#39;<a href="http://drools.org/drools-5.0/change-set" target="_blank">http://drools.org/drools-5.0/change-set</a>&#39;<br>
    xmlns:xs=&#39;<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>&#39;<br>
    xs:schemaLocation=&#39;<a href="http://drools.org/drools-5.0/change-set.xsd" target="_blank">http://drools.org/drools-5.0/change-set.xsd</a>&#39; &gt;<br>
    &lt;add&gt;<br>
        &lt;resource source=&#39;file:C:/Transformations.drl&#39; type=&#39;DRL&#39; /&gt;<br>
        &lt;!--resource<br>
source=&#39;classpath:bass/enrichment/rules/Transformations.drl&#39; type=&#39;DRL&#39; /--&gt;<br>
    &lt;/add&gt;<br>
&lt;/change-set&gt;<br>
<br>
I am creating the KA as follows:<br>
<br>
        KnowledgeAgentConfiguration agentConfig =<br>
KnowledgeAgentFactory.newKnowledgeAgentConfiguration();<br>
        agentConfig.setProperty(&quot;drools.agent.newInstance&quot;, &quot;false&quot;);<br>
<br>
        agent = KnowledgeAgentFactory.newKnowledgeAgent(&quot;MyAgent&quot;,<br>
agentConfig);<br>
        kaListener = new KnowledgeAgentEventListenerImpl();<br>
        agent.addEventListener(kaListener);<br>
<br>
agent.applyChangeSet(ResourceFactory.newClassPathResource(&quot;rules/ChangeSet.xml&quot;));<br>
        agent.monitorResourceChangeEvents(true);<br>
<br>
        ResourceChangeScannerConfiguration scannerConfig =<br>
ResourceFactory.getResourceChangeScannerService().newResourceChangeScannerConfiguration();<br>
        scannerConfig.setProperty(&quot;drools.resource.scanner.interval&quot;, &quot;5&quot;);<br>
<br>
<br>
ResourceFactory.getResourceChangeScannerService().configure(scannerConfig);<br>
        ResourceFactory.getResourceChangeNotifierService().start();<br>
        ResourceFactory.getResourceChangeScannerService().start();<br>
<br>
I&#39;ll keep you posted if I hear anything.<br>
<br>
- Eric<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/KnowledgeAgent-ChangeSet-failing-to-reload-resources-tp1842033p1842540.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/KnowledgeAgent-ChangeSet-failing-to-reload-resources-tp1842033p1842540.html</a><br>

Sent from the Drools - User mailing list archive at Nabble.com.<br>
</font><div><div></div><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br></div>