Hi
I read the drools documentation and this is what I find
quote
The KnowlegeAgent is created by the KnowlegeAgentFactory. The KnowlegeAgent
provides automatic loading, caching and re-loading, of resources and is
configured from a properties files. The KnowledgeAgent can update or rebuild
this KnowlegeBase as the resources it uses are changed. The strategy for
this is determined by the configuration given to the factory, but it is
typically pull based using regular polling. We hope to add push based
updates and rebuilds in future versions.
unquote
Is the push based update available in the latest version? or is there a way
to get this done thru custom code?
Thanks
Ram
rviswanathan wrote:
Hi
I am trying to detect rule changes (that I edit using Guvnor) at runtime
in my java program.
I was able to use the resource scanner (as provided in the drools
documentation) to poll and get the changes.
I am also trying to see the possibility of using a push based approach,
instead of the polling. I see the classes for the ResourceChangeMonitor,
ResourceChangeNotifier and ResourceChangeListener, but I am not sure how I
should go about using these.
I tried to use the following method on the ResourceChangeNotifier by
passing in a listener implementation and the ChangeSet as the resource -
but what do I implement inside this method?
void subscribeResourceChangeListener(ResourceChangeListener listener,
Resource resource)
Is this approach correct?
Thanks
Ram
--
View this message in context:
http://www.nabble.com/Detect-rules-changes-at-runtime-using-a-push-mechan...
Sent from the drools - user mailing list archive at
Nabble.com.