-
1. Re: Is there a org.jboss.monitor.ThresholdMonitor equivalent for JBoss AS7 Datasources ?
ejroberts Sep 5, 2012 10:40 AM (in response to 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>