开发者

Problems using Drools and Tomcat

开发者 https://www.devze.com 2023-01-06 17:38 出处:网络
When i 开发者_StackOverflow中文版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

When i 开发者_StackOverflow中文版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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消