[rules-users] Change Scanner does not start

Michael Anstis michael.anstis at gmail.com
Fri Jan 18 15:30:33 EST 2013


A ServletContextListener might be preferable to using a JSP.

sent on the move

On 18 Jan 2013 19:17, "rtanikella" <rtanikella at gmail.com> wrote:

> The scanner does start, but it is not logged automatically. I started a
> listener via a jsp
>
> <%@ page language="java" contentType="text/html; charset=utf-8" %>
> <%
> org.drools.SystemEventListenerFactory.setSystemEventListener(new
> org.drools.agent.impl.PrintStreamSystemEventListener(System.out));
> %>
>
> and then I could see the logs.
>
> As Antonio pointed out, a) make sure that your changset resources include
> only POJOs, and NOT declared facts, and b) knowledge-services.xml has this
> entry - the attribute "enabled" set to true being the key here, to start
> the
> scanner.
>
> <drools:resource-change-scanner id="scanner" interval="60" enabled="true"/>
>
> This also means that you don't need Antonio's JSP to start the scanner. It
> may however come in handy if you need to change the scan interval.
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/rules-users-Change-Scanner-does-not-start-tp4018607p4021651.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20130118/cf0ef1b3/attachment.html 


More information about the rules-users mailing list