1 Reply Latest reply on Sep 5, 2012 10:40 AM by ejroberts

    Is there a org.jboss.monitor.ThresholdMonitor equivalent for JBoss AS7 Datasources ?

    ejroberts

      In our usage of an earlier version of JBoss (5.1.0), we make use of the org.jboss.monitor.ThresholdMonitor bean

       

       

      {{{

      <!-- Generate a warning if there are less than two connections left -->

      <mbean code="org.jboss.monitor.ThresholdMonitor" name="X:service=ThresholdMonitor,name=DefaultDS-ConnectionPool">

            

          <attribute name="MonitorName">DefaultDS-ConnectionPool</attribute>

       

          <depends optional-attribute-name="ObservedObject">jboss.jca:name=DefaultDS,service=ManagedConnectionPool</depends>

          <attribute name="ObservedAttribute">AvailableConnectionCount</attribute>

       

          <depends-list optional-attribute-name="AlertListeners">

              <depends-list-element>X:service=JmxNotificationListener</depends-list-element>

          </depends-list>

       

          <attribute name="Threshold">2</attribute>

          <attribute name="Period">60</attribute>

          <attribute name="CompareTo">1</attribute>

          <attribute name="Enabled">true</attribute>

        

      </mbean>

      }}}

       

      The same monitor class is not provided in JBoss AS 7.1.1.Final. Does anybody know of an existing equivalent for AS7 ?

        • 1. Re: Is there a org.jboss.monitor.ThresholdMonitor equivalent for JBoss AS7 Datasources ?
          ejroberts

          Oops.

           

          <!-- Generate a warning if there are less than two connections left -->

          <mbean code="org.jboss.monitor.ThresholdMonitor"

           

              name="X.MX:service=ThresholdMonitor,name=DefaultDS-ConnectionPool">

                

              <attribute name="MonitorName">DefaultDS-ConnectionPool</attribute>

           

              <depends optional-attribute-name="ObservedObject">jboss.jca:name=DefaultDS,service=ManagedConnectionPool</depends>

              <attribute name="ObservedAttribute">AvailableConnectionCount</attribute>

           

              <depends-list optional-attribute-name="AlertListeners">

                  <depends-list-element>X.MX:service=JmxNotificationListener</depends-list-element>

              </depends-list>

           

              <attribute name="Threshold">2</attribute>

              <attribute name="Period">60</attribute>

              <attribute name="CompareTo">1</attribute>

              <attribute name="Enabled">true</attribute>

            

          </mbean>