)
fixed
the Change Scanner problem, just put the enabled="true" and the Change
Scanner started working.
For some reason your answer was not accepted in the mailing list, so i
discovered that somebody had answer my post only today googling about the
problem again.
Thank you very much!
Antonio Anderson Souza
<
On Thu, Jul 12, 2012 at 4:14 PM, Antonio Anderson Souza <
antonioams(a)gmail.com> wrote:
Dear All,
I discovered why the rules stopped working after ChangeScanner starts the
problem is the issue
JBRULES-2947<https://issues.jboss.org/browse/JBRULES-2947?page=com.atl...
.
To fix the problem I changed my models to a POJO package instead of the
Described in the Guvnor (the solution was found in this thread
http://drools.46999.n3.nabble.com/drools-server-resource-change-scanner-n...),
after that when I start the Change Scanner by the jsp DroolsServer detects
changes in the rules stored in Guvnor, and fire all rules properly.
The unique problem that persists is the Change Scanner start that i need
to call it in the JSP mannually, I'll automate in the the application start.
Best Regards,
Antonio Anderson Souza
<
http://174.129.217.139:8080/makecallclient/callme?p=YXNvdXphQHZvaWNlLmJyY...
Blog <
http://www.antonioams.com> - Twitter <
http://twitter.com/antonioams>-
LinkedIn <
http://br.linkedin.com/in/antonioams> -
Facebook<http://www.facebook.com/antonioams>
On Wed, Jul 11, 2012 at 7:53 PM, Antonio Anderson Souza <
antonioams(a)gmail.com> wrote:
> Dear All,
>
> I have an application that use Guvnor 5.4.0 final as the rules repository
> and a DroolsServer 5.4.0 final (with Spring Camel) to provide rule engine
> via a Rest Webservices, all of those apps Running in a JBossAS 7.1.
>
> All of the service are working perfectly, except the
> resource-change-scanner that is configured in the knowledge-services.xml
> [1] as it's described in the documentation.
>
> When Drools-Server are deployed the Change Scanner does not start (I'm
> monitoring the change scanner via Wireshark analyzing the communication
> between DroolServer and Guvnor), I've created an small JSP file [2] that
> invoke the ChangeScanner start method, when i run the JSP the Change
> Scanner start to work (i can see the http requests from Drools Server do
> Guvnor to see if the knowledge base had changed), but after Change Scanner
> started working the rules are not triggered anymore.
>
> So without Change Scanner I've all of the knowledge service running
> properly, but the App is unable to detect rules changes, when I explicitly
> (via JSP) start the Change Scanner all of the knowledge service stopped
> working.
>
> Change Scanner starts automatically?
>
> Does anybody has some idea to help me?
>
> [1]
> ------------------------------------------------------------------------
> <beans
xmlns="http://www.springframework.org/schema/beans"
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
xmlns:drools="http://drools.org/schema/drools-spring"
>
xsi:schemaLocation="http://www.springframework.org/schema/beans
>
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
>
http://drools.org/schema/drools-spring
>
http://drools.org/schema/drools-spring-1.3.0.xsd">
> <drools:grid-node id="node1"/>
> <drools:resource-change-scanner id="scanner" interval="10"
/>
> <drools:kbase id="kbase1" node="node1" />
> <drools:kagent id="kagent1" kbase="kbase1">
> <drools:resources>
> <drools:resource type="CHANGE_SET"
source="classpath:ChangeSet.xml" />
> </drools:resources>
> </drools:kagent>
> <drools:ksession id="ksession1" type="stateless"
kbase="kbase1"
> node="node1"/>
> </beans>
>
> [2]
> ------------------------------------------------------------------------
> <%@ page language="java" contentType="text/html;
charset=utf-8" %>
> <%
> org.drools.io.ResourceChangeScannerConfiguration sconf =
>
org.drools.io.ResourceFactory.getResourceChangeScannerService().newResourceChangeScannerConfiguration();
> sconf.setProperty("drools.resource.scanner.interval", "5");
>
> org.drools.io.ResourceFactory.getResourceChangeScannerService().configure(sconf);
> org.drools.io.ResourceFactory.getResourceChangeScannerService().start();
> org.drools.io.ResourceFactory.getResourceChangeNotifierService().start();
> %>
>
> Best Regards,
>
> Antonio Anderson Souza
>
>
<
http://174.129.217.139:8080/makecallclient/callme?p=YXNvdXphQHZvaWNlLmJyY...
>
> Blog <
http://www.antonioams.com> -
Twitter<http://twitter.com/antonioams>-
> LinkedIn <
http://br.linkedin.com/in/antonioams> -
Facebook<http://www.facebook.com/antonioams>
>
>