JBoss Community

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

created by Ed Roberts in Datasource Configuration - View the full discussion

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>

Reply to this message by going to Community

Start a new discussion in Datasource Configuration at Community