Rupesh,

   This should be working. Can you provide me with a self-contained project in eclipse or a test case that I can reproduce/verify here? We have another cut tomorrow, so if you read this and can provide me with a test case before tomorrow EOD, I can check and make sure it is working.

   Thanks,
    Edson


On Mon, Dec 16, 2013 at 3:47 AM, Rupesh M G <rupesh.gopinathan@ibsplc.com> wrote:

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



DISCLAIMER: "The information in this e-mail and any attachment is intended only for the person to whom it is addressed and may contain confidential and/or privileged material. If you have received this e-mail in error, kindly contact the sender and destroy all copies of the original communication. IBS makes no warranty, express or implied, nor guarantees the accuracy, adequacy or completeness of the information contained in this email or any attachment and is not liable for any errors, defects, omissions, viruses or for resultant loss or damage, if any, direct or indirect."

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



--
  Edson Tirelli
  Principal Software Engineer 
  Red Hat Business Systems and Intelligence Group