my dog learned polymorphism*
The moose likes Other Java Products and Servers and the fly likes drools - mechanisms of loading rules Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "drools - mechanisms of loading rules" Watch "drools - mechanisms of loading rules" New topic
Author

drools - mechanisms of loading rules

Eamon Brown
Greenhorn

Joined: Aug 11, 2008
Posts: 8
Hi,

as a new user of Drools, one of the things I find confusing is how different rules sources are loaded.
Packages and packages stored on a BRMS server seemed to be generally loaded by supplying a properties object to the newRuleAgent() method, while drl files seem to be loaded using a FileInputStreams.

However, I have also successfully loaded a drl file using a properties file and passing it to the newRuleAgent() method.

Is this inadvisable?

Any comments would be welcome.

Thanks in advance!
Eamon Brown
Greenhorn

Joined: Aug 11, 2008
Posts: 8
to elaborate on this question - here is an example of how drl files seem to be usually loaded into the rulesbase:




and here is the way I've been doing it:



where is the drl compiled in this method? Is there any significant performance impact?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: drools - mechanisms of loading rules
 
Similar Threads
JBoss Rules Doubts
Drools-4.0.7 + OC4J
JBOSS DROOLS - java heap space
jboss Drools- validation
Drools implementation problem