0 Replies Latest reply on Sep 15, 2008 7:45 PM by Mark Meyer

    ThresholdMonitor for ManagedConnectionPool

    Mark Meyer Newbie

      hello all,

      environment:
      jboss 4.2.1 GA
      linux - SuSE 10.1

      hopefully someone can help me with this question,

      i need to create a small Threshold monitor that will track ConnectionCount for my mysql datasource.

      i looked at several examples and tried the following, but am getting the error message below when i deploy to $JBOSS_HOME/server/default/deploy/management/monitors/

      [ServiceController] Problem starting service jboss.monitor:service=ManagedConnections
      javax.management.InstanceNotFoundException: jboss.jca:type=ManagedConnectionPool is not registered

      can someone show me what i am missing ?

      thx
      mark

      <?xml version="1.0" encoding="UTF-8"?>
      <server>
      <mbean code="org.jboss.monitor.ThresholdMonitor"
       name="jboss.monitor:service=ManagedConnections">
       <attribute name="MonitorName">ManagedConnections Monitor</attribute>
       <attribute name="ObservedObject">jboss.jca:type=ManagedConnectionPool</attribute>
       <attribute name="ObservedAttribute">ConnectionCount</attribute>
       <attribute name="Threshold">777</attribute>
       <attribute name="CompareTo">0</attribute>
       <attribute name="Period">1000</attribute>
       <attribute name="Enabled">true</attribute>
       <depends-list optional-attribute-name="AlertListeners">
       <depends-list-element>jboss.alerts:service=ConsoleAlertListener</depends-list-element>
       <depends-list-element>jboss.alerts:service=EmailAlertListener</depends-list-element>
       </depends-list>
      </mbean>
      </server>