Ed Roberts [
https://community.jboss.org/people/ejroberts] created the discussion
"Re: Is there a org.jboss.monitor.ThresholdMonitor equivalent for JBoss AS7
Datasources ?"
To view the discussion, visit:
https://community.jboss.org/message/758089#758089
--------------------------------------------------------------
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
[
https://community.jboss.org/message/758089#758089]
Start a new discussion in Datasource Configuration at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]