• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

drools - mechanisms of loading rules

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic