<div><br></div><div>    All,</div><div><br></div><div>    The MBeans in Drools where designed to be used out of the box, so no facilities where implemented to make it easier to re-implement them (of course you can do that, just saying, try out of the box first and see if it matches your needs or not... :) ).</div>
<div><br></div><div>    To enable the mbeans:</div><div><br></div><div>KnowledgeBaseConfiguration conf = ...</div><div>conf.setOption( MBeansOption.ENABLED );</div><div><br></div><div>    Some links:</div><div><br></div><div>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-introduction/html_single/index.html#d0e47">http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-introduction/html_single/index.html#d0e47</a></div>
<div><a href="http://blog.athico.com/2009/10/drools-monitoring-with-jmx.html">http://blog.athico.com/2009/10/drools-monitoring-with-jmx.html</a></div><div><br></div><div>    Edson</div><br><br><div class="gmail_quote">2011/1/21 Wolfgang Laun <span dir="ltr">&lt;<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Just get some version and modify it according to your needs. Here is the latest:<br><br><a href="http://fisheye.jboss.org/browse/JBossRules/trunk/drools-core/src/main/java/org/drools/management/KnowledgeSessionMonitoring.java?hb=true" target="_blank">http://fisheye.jboss.org/browse/JBossRules/trunk/drools-core/src/main/java/org/drools/management/KnowledgeSessionMonitoring.java?hb=true</a><br>

<br>It&#39;s really no big deal to write an agenda listener that counts creations, cancellations, firings in a map with the rule name as its key. Less than 100 lines of Java code...<br><font color="#888888"><br>-W</font><div>
<div></div><div class="h5"><br><br><br><br>On 21 January 2011 12:57, asutosh_pandya &lt;<a href="mailto:asutosh.pandya@cognizant.com" target="_blank">asutosh.pandya@cognizant.com</a>&gt; wrote:<br>
&gt;<br>&gt; Hello Laun,<br>&gt;<br>&gt; Thanks for the reply.<br>&gt;<br>&gt; Well there is nothing wrong with the listeners. The requirement is such that<br>&gt; we need all the information only after firing the rules. The<br>

&gt; KnowledgeSession itself should provide all the information rather than going<br>&gt; through each and every events and logging the information every time.<br>&gt;<br>&gt; Further I am using Drools 5.1.0.M1 API for the current requirement which has<br>

&gt; only API (jar files). No source code is available for the same. The<br>&gt; implementation class of KnowledgeSessionMonitoringMBean i.e.<br>&gt; KnowledgeSessionMonitoring.java is not available in Drools 5.1.0.M1 API.<br>

&gt;<br>&gt; Can you please guide me how can I create an instance of<br>&gt; KnowledgeSessionMonitoringMBean or any other calls which can provide me the<br>&gt; above information.<br>&gt;<br>&gt; Thanks in advance,<br>&gt; Asutosh<br>

&gt; --<br>&gt; View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Use-of-DroolsManagementAgentMBean-tp2300090p2301291.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Use-of-DroolsManagementAgentMBean-tp2300090p2301291.html</a><br>

&gt; Sent from the Drools - User mailing list archive at Nabble.com.<br>&gt; _______________________________________________<br>&gt; rules-users mailing list<br>&gt; <a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>

&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>&gt;<br><br>
</div></div><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><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>