Thanks Mark, that's exactly i was thinking of. Because i don't have the
permissions of deploying the jars on the fly.
--
View this message in context:
http://drools.46999.n3.nabble.com/Best-way-to-have-multiple-kieBase-dynamically-tp4028247p4028259.html
Sent from the Drools: User forum mailing
each time you wish to update, you need to increase the model’s version. You can
do that with your existing kiebuilder and kiefilesystem. Then buildAll and make
sure it’s added to KieRepository (if it’s not done automated, I forget if it is
or isn’t). Once the new jar is in the KieRepository you
Sorry for the confusion, what i actually meant was : lets say i started my
application and with the sample code i wrote above, i created n kieBases and
everything works fine, but now in the middle i want to create another
kieBase and deploy a new drl file in that kieBase on the fly, and want to
dep
take a look at this kmodule.xml. This is one maven project,and thus one jar,
but with 1..n named kiebases in it. Each kiebase selects resources from
different folders.
https://github.com/droolsjbpm/drools/blob/master/drools-examples/src/main/resources/META-INF/kmodule.xml
The model you are work
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 ")
.setDefau
You need to specify the packages that the kiebase includes. That way different
resources can be assigned to different kiebases
KieBaseModel.addPackage(java.lang.String s);
In the xml it’s a comma separated list packages=“"
Mark
On 22 Feb 2014, at 19:58, lukes wrote:
> Hi,
>
> What's the best