3 Replies Latest reply on Feb 10, 2006 5:23 AM by Dimitris Andreadis



      I'm sending the following alarm but nothing seems to change on the AlarmTable Stateless or Statefull either.

      My MBean extends org.jboss.system.ServiceMBeanSupport
      AlarmManager alm =
      new AlarmManager(this);

      I set alm.setSeverity("package.something.test", Alarm.SEVERITY_MINOR);
      and then
      alm.sendAlarm("package.something.test", Alarm.SEVERITY_CRITICAL, "my msg", "extraInfo");

      Do i have to use a specific type of alarm? Like "jboss.alarm.memory.low" If yes, is it possible to make my use my own types?

        • 1. Re: SendAlarm
          Dimitris Andreadis Master

          Have you configured the ActiveAlarmTable to subscribe to your mbean?

          The default config is:

           <mbean code="org.jboss.monitor.services.ActiveAlarmTable"
           <attribute name="SubscriptionList">
           <mbean name="jboss.monitor:*">
           <notification type="jboss.alarm"/>
           <notification type="JBOSS_MONITOR_NOTIFICATION"/>
           <mbean name="jboss.system:service=Logging,type=JMXNotificationAppender"/>

          You need to add a line like:
           <mbean name="XXX"/>

          • 2. Re: SendAlarm

            i did the change and works fine. I set also the notification type for my custom solution.


            • 3. Re: SendAlarm
              Dimitris Andreadis Master

              Cool, let me know how it goes or if you have ideas for extensions...