Hi,
JConsole (of Oracle JDK 1.7) is not listing the drools expert 6 mbeans.
I tried the following Drools 6 sample KieContainerFromKieRepoExample.
I set the JVM option -Ddrools.mbeans=enabled, but JConsole did not list the mbeans.
When I tried the same in a Drools 5.5 sample, the mbeans were listed in JConsole.
Is it a bug in Drools expert 6? Or did I miss any required step for 6? Please help.
public void go(PrintStream out) {
KieServices ks = KieServices.Factory.get();
// Install example1 in the local maven repo before to do this
KieContainer kContainer = ks.newKieContainer(ks.newReleaseId("org.drools", "named-kiesession", "6.0.0-SNAPSHOT"));
KieSession kSession = kContainer.newKieSession("ksession1");
kSession.setGlobal("out", out);
Object msg1 = createMessage(kContainer, "Dave", "Hello, HAL. Do you read me, HAL?");
kSession.insert(msg1);
kSession.fireAllRules();
}
Thanks & Regards,
Rupesh