]
Esteban Aliverti reassigned JBRULES-2935:
-----------------------------------------
Assignee: Esteban Aliverti (was: Mark Proctor)
Knowledge Agent configured in spring not picking up changes to
LATEST.drl in guvnor despite a global resource change scanner being configured
---------------------------------------------------------------------------------------------------------------------------------------------
Key: JBRULES-2935
URL:
https://issues.jboss.org/browse/JBRULES-2935
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: drools-core, drools-spring
Affects Versions: 5.1.1.FINAL, 5.2.0.M1
Environment: Windows XP/Jboss 5.1.0
Reporter: Alex Deller
Assignee: Esteban Aliverti
Attachments: beans.xml, changeSet.xml, ResourceChangeScannerStarter.java
I have a knowledge agent configured in spring running in a web application, when the
application is deployed it pulls the LATEST.drl from my package in Guvnor. In order that
we could change rules on the fly to get a diferent result in calculations the rules
perform I set a global resource-change-scanner in my spring config with an interval of 60
secs. After I change my rule and rebuild the package and check that this is reflected in
the LATEST.drl that can be retrieved in guvnor I then try from my web application, but
this is returning the result of the previous version of the rule, so the knowledge agent
does not appear to be polling guvnor for the very latest version. I first tried this with
version 5.1.1 and have now tried with 5.2.1.M1 and experience the same problem. With
5.2.1.M1 I see the following in my jboss log every time I make a request to my web app:
2011-03-30 13:17:29,121 INFO [STDOUT] (http-127.0.0.1-8080-3) [2011:03:89
13:03:121:debug] KnowledgeAgent subscribing from resource=[UrlResource
path='http://localhost:8080/drools-5.1.1-guvnor/org.drools.guvnor.Guvnor/package/test/LATEST.drl']
2011-03-30 13:17:29,121 INFO [STDOUT] (http-127.0.0.1-8080-3) [2011:03:89
13:03:121:debug] ResourceChangeNotification subscribing
listener=org.drools.agent.impl.KnowledgeAgentImpl@a8129a to resource=[UrlResource
path='http://localhost:8080/drools-5.1.1-guvnor/org.drools.guvnor.Guvnor/package/test/LATEST.drl']
But it is still not picking up the latest. I've attached the spring config I've
used for v5.2.1.M1 and my change set xml.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: