<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style>
<!--
@font-face
        {font-family:Calibri}
@font-face
        {font-family:Tahoma}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
p.msochpdefault, li.msochpdefault, div.msochpdefault
        {margin-right:0cm;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Calibri","sans-serif"}
span.emailstyle17
        {font-family:"Calibri","sans-serif";
        color:windowtext}
span.EmailStyle19
        {font-family:"Calibri","sans-serif";
        color:#1F497D}
.MsoChpDefault
        {font-size:10.0pt;
        font-family:"Calibri","sans-serif"}
@page WordSection1
        {margin:72.0pt 72.0pt 72.0pt 72.0pt}
div.WordSection1
        {}
-->
</style>
</head>
<body lang="EN-IN" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hi Edson,</span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Were you able to check and reproduce the issue? The maven projects are attached.</span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
<p class="MsoNormal"><span style="color:#1F497D">Regards,</span></p>
<p class="MsoNormal"><span style="color:#1F497D">Rupesh</span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
<div>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt; font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span lang="EN-US" style="font-size:10.0pt; font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> rules-users-bounces@lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org]
<b>On Behalf Of </b>Rupesh M G<br>
<b>Sent:</b> 17 December 2013 11:00<br>
<b>To:</b> rules-users@lists.jboss.org<br>
<b>Subject:</b> Re: [rules-users] Drools 6 MBeans not getting listed in Oracle JConsole</span></p>
</div>
</div>
<p class="MsoNormal">&nbsp;</p>
<div>
<p class="MsoNormal">Hi Edson,</p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thanks for the reply. I&#8217;m attaching two maven projects from the drools 6 samples.</p>
<p class="MsoNormal">The named-kiesession project should be first installed to maven.</p>
<p class="MsoNormal">The kiecontainer-from-kierepo project will fetch the module from the local maven repository.</p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal">The class KieContainerFromKieRepoExample loops inserting facts to the working memory, at an interval of 3 seconds.</p>
<p class="MsoNormal">My expectation is to see the org.drools hierarchy in the MBeans tab of JConsole.</p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal">The JVM arguments are as follows. JConsole was started locally.</p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal">-Ddrools.mbeans=enabled -Dcom.sun.management.jmxremote.port=19988 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false</p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal">Regards,</p>
<p class="MsoNormal">Rupesh</p>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt; font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><br>
<br>
DISCLAIMER: </span><span style="font-size:7.5pt; font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;; color:#999999">&quot;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.&quot;</span><span style="font-size:7.5pt; font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
<p class="MsoNormal">Rupesh,</p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal">&nbsp; &nbsp;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.</p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal">&nbsp; &nbsp;Thanks,</p>
<p class="MsoNormal">&nbsp; &nbsp; Edson</p>
<p class="MsoNormal" style="margin-bottom:12.0pt">&nbsp;</p>
<p class="MsoNormal">On Mon, Dec 16, 2013 at 3:47 AM, Rupesh M G &lt;<a href="mailto:rupesh.gopinathan@ibsplc.com" target="_blank">rupesh.gopinathan@ibsplc.com</a>&gt; wrote:</p>
<p class="MsoNormal" style="">Hi,</p>
<p class="MsoNormal" style="">&nbsp;</p>
<p class="MsoNormal" style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; JConsole (of Oracle JDK 1.7) is not listing the drools expert 6 mbeans.
</p>
<p class="MsoNormal" style="">I tried the following Drools 6 sample KieContainerFromKieRepoExample.</p>
<p class="MsoNormal" style="">I set the JVM option -Ddrools.mbeans=enabled, but JConsole did not list the mbeans.</p>
<p class="MsoNormal" style="">When I tried the same in a Drools 5.5 sample, the mbeans were listed in JConsole.</p>
<p class="MsoNormal" style="">&nbsp;</p>
<p class="MsoNormal" style="">Is it a bug in Drools expert 6? Or did I miss any required step for 6? Please help.</p>
<p class="MsoNormal" style="">&nbsp;</p>
<p class="MsoNormal" style="">&nbsp;</p>
<p class="MsoNormal" style="">&nbsp;&nbsp;&nbsp; public void go(PrintStream out) {</p>
<p class="MsoNormal" style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; KieServices ks = KieServices.Factory.get();</p>
<p class="MsoNormal" style="">&nbsp;</p>
<p class="MsoNormal" style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Install example1 in the local maven repo before to do this</p>
<p class="MsoNormal" style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; KieContainer kContainer = ks.newKieContainer(ks.newReleaseId(&quot;org.drools&quot;, &quot;named-kiesession&quot;, &quot;6.0.0-SNAPSHOT&quot;));</p>
<p class="MsoNormal" style="">&nbsp;</p>
<p class="MsoNormal" style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; KieSession kSession = kContainer.newKieSession(&quot;ksession1&quot;);</p>
<p class="MsoNormal" style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; kSession.setGlobal(&quot;out&quot;, out);</p>
<p class="MsoNormal" style="">&nbsp;</p>
<p class="MsoNormal" style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Object msg1 = createMessage(kContainer, &quot;Dave&quot;, &quot;Hello, HAL. Do you read me, HAL?&quot;);</p>
<p class="MsoNormal" style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; kSession.insert(msg1);</p>
<p class="MsoNormal" style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; kSession.fireAllRules();</p>
<p class="MsoNormal" style="">&nbsp;&nbsp;&nbsp; }</p>
<p class="MsoNormal" style="">&nbsp;</p>
<p class="MsoNormal" style="">Thanks &amp; Regards,</p>
<p class="MsoNormal" style="">Rupesh</p>
<p class="MsoNormal"><br>
<br>
DISCLAIMER: <span style="font-size:7.5pt; font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;; color:#999999">
&quot;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.&quot;</span></p>
<p class="MsoNormal"><br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a></p>
<p class="MsoNormal"><br>
<br clear="all">
</p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal">-- </p>
<p class="MsoNormal">&nbsp; Edson Tirelli<br>
&nbsp; Principal Software Engineer&nbsp;</p>
<p class="MsoNormal" style="margin-bottom:12.0pt">&nbsp; Red Hat Business Systems and Intelligence Group</p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
</div>
<br>
<br>
DISCLAIMER: <font color="#999999" size="1" face="Tahoma">&quot;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.&quot;</font><br>
<font size="1"></font>
</body>
</html>