Thanks Mark for the reply.

you mean something like :

KieServices kieServices = KieServices.Factory.get();

KieModuleModel kieModuleModel = kieServices.newKieModuleModel();

for( File ruleFile  : ruleFiles)
{
KieBaseModel kieBaseModel1 = kieModuleModel.newKieBaseModel( "KBase1 ")
        .setDefault( true )
        .setEqualsBehavior( EqualityBehaviorOption.EQUALITY )
        .setEventProcessingMode( EventProcessingOption.STREAM );
KieBaseModel1.addPackage(java.lang.String s);
...
}
kfs.writeKModuleXML(kieModuleModel .toXML());
this.kieBuilder = ks.newKieBuilder(kfs).buildAll();
this.kContainer =
this.kService.newKieContainer(this.kRepository.getDefaultReleaseId());


biut wouldn't that create another jar ? And if some new ruleFile come, then
do i have to create all the kieBases again or can i just create the new
kieBase? And if i need to modify any of the drl file, then will it rebuild
the whole kieBuilder ?



--
View this message in context: 
http://drools.46999.n3.nabble.com/Best-way-to-have-multiple-kieBase-dynamically-tp4028247p4028249.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to