newbie question about KnowledgeBuilder

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

newbie question about KnowledgeBuilder

kenatnielsen
Hi,

I'm inheriting Drools 6.0 application where all rules are in one huge drl file.  Would behavior be different if I broke rules into multiple files and loaded with multiple calls to KnowledgeBuilder.add()?

Also, KnowledgeBuilder is being created with each session: KnowledgeBuilder.newKnowledgeBuilder() and then knowledgeBuilder.add().  Since rules don't change, any reason why can't create KnowledgeBuilder at startup and share it?  Is it thread safe and can it be re-used?

Thanks,
Ken