Reputation: 1
When i modified a rule in .drl, modified don't take effect. Is it possible to modified (i.e. hot deploy) a rule (.drl) in drools without restarting the server (tomcat)? How can i resolve this?
Upvotes: 0
Views: 1245
Reputation: 19488
Yes it is - there are a few ways - but the first question is how you are loading the rules in the first place - are you loading them from the classpath? or somewhere on disk? There is a KnowledgeAgent (and RuleAgent) class that can load it from a variety of sources, and detect changes and apply them for you automatically when you change a drl file.
Upvotes: 1