<p>A ServletContextListener might be preferable to using a JSP.</p>
<p>sent on the move</p>
<p>On 18 Jan 2013 19:17, "rtanikella" <<a href="mailto:rtanikella@gmail.com">rtanikella@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The scanner does start, but it is not logged automatically. I started a<br>
listener via a jsp<br>
<br>
<%@ page language="java" contentType="text/html; charset=utf-8" %><br>
<%<br>
org.drools.SystemEventListenerFactory.setSystemEventListener(new<br>
org.drools.agent.impl.PrintStreamSystemEventListener(System.out));<br>
%><br>
<br>
and then I could see the logs.<br>
<br>
As Antonio pointed out, a) make sure that your changset resources include<br>
only POJOs, and NOT declared facts, and b) knowledge-services.xml has this<br>
entry - the attribute "enabled" set to true being the key here, to start the<br>
scanner.<br>
<br>
<drools:resource-change-scanner id="scanner" interval="60" enabled="true"/><br>
<br>
This also means that you don't need Antonio's JSP to start the scanner. It<br>
may however come in handy if you need to change the scan interval.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/rules-users-Change-Scanner-does-not-start-tp4018607p4021651.html" target="_blank">http://drools.46999.n3.nabble.com/rules-users-Change-Scanner-does-not-start-tp4018607p4021651.html</a><br>
Sent from the Drools: User forum mailing list archive at Nabble.com.<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>
</blockquote></p>