Hi Edson,
Were you able to check and reproduce the issue? The maven projects are attached.
Regards,
Rupesh
From: rules-users-bounces@lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org]
On Behalf Of Rupesh M G
Sent: 17 December 2013 11:00
To: rules-users@lists.jboss.org
Subject: Re: [rules-users] Drools 6 MBeans not getting listed in Oracle JConsole
Hi Edson,
Thanks for the reply. I’m attaching two maven projects from the drools 6 samples.
The named-kiesession project should be first installed to maven.
The kiecontainer-from-kierepo project will fetch the module from the local maven repository.
The class KieContainerFromKieRepoExample loops inserting facts to the working memory, at an interval of 3 seconds.
My expectation is to see the org.drools hierarchy in the MBeans tab of JConsole.
The JVM arguments are as follows. JConsole was started locally.
-Ddrools.mbeans=enabled -Dcom.sun.management.jmxremote.port=19988 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false
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."
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