Ciao, I'm using 6.1.0.Final.
If I create KieBase from definition of kmodule.xml, I would like to know if there is a way via API to check what is the KieBaseConfiguration defined, please?
Namely, I would like to check the eventProcessingMode setting of a given kieBase instance.
While for KieSession instance there is method getSessionConfiguration(), I cannot find analogous for KieBase, nor another way.
Follows other 2 things I've tried, unfortunately without success:
- If I try enable JMX MBean via command line option -Ddrools.mbeans=enabled , it does not enable the MBean - I do attach screenshots.
- If I try enable JMX MBean via API, I need to define a KieBaseConfiguration instance, and this would *overwrite* the settings of eventProcessingMode defined in the kmodule.
For instance I cannot enable JMX MBean via API because if I have this defined in the kmodule.xml
KieBaseConfiguration kieBaseConf = kieServices.newKieBaseConfiguration();
kieBaseConf.setOption( MBeansOption.ENABLED );
KieBase kieBase = kContainer.newKieBase("kbStream", kieBaseConf);
because the default for eventProcessingMode is CLOUD, it would be overwritten with the default CLOUD of the kieBaseConf instance, instead of picking it up, mixing-in of the setting explicitly set as STREAM in kmodule.xml.
I would also like to ask if it's normal that if I try to enable JMX MBean via command line option
-Ddrools.mbeans=enabled , it does not enable the MBean or I'm doing something wrong, please?
Thanks
Ciao
MM

