users@glassfish.java.net

Re: Alert Service

From: sankara rao bhogi <Sankara.Rao_at_Sun.COM>
Date: Wed, 18 Apr 2007 14:53:24 +0530

glassfish_at_javadesktop.org wrote:
> Sorry about the late reply.
>
> I somebody could give me an example management rule that would be a great help
> [Message sent by forum member 'danielrhoades' (danielrhoades)]
>
> http://forums.java.net/jive/thread.jspa?messageID=212874
>

Please have a look at the DeadQueueMessageAlert*.java files in the
following directory
https://glassfish.dev.java.net/source/browse/glassfish/appserv-core-ee/appserv-core/src/java/com/sun/enterprise/ee/selfmanagement/actions/?only_with_tag=MAIN

Related configuration in the domain.xml is:
<mbean enabled="false"
impl-class-name="com.sun.enterprise.ee.selfmanagement.actions.DeadQueueMessageAlertAction"
name="DeadQueueMessageAlertAction"
object-name="system:impl-class-name=com.sun.enterprise.ee.selfmanagement.actions.DeadQueueMessageAlertAction,scategory=self-management"
object-type="system-all">
      <property name="Threshold" value="1"/>
      <property name="Offset" value="0"/>
      <property name="Interval" value="120"/>
      <property name="MailRecipients" value="sankara_at_localhost"/>
      <property name="MailResource" value="mail-res-1"/>
    </mbean>

<management-rule enabled="false" name="DeadQueueMessageAlertRule">
          <event level="FINE" record-event="false" type="lifecycle">
            <property name="name" value="ready"/>
          </event>
          <action action-mbean-name="DeadQueueMessageAlertAction"/>
          <description>Management rule to send an alert in case of a
dead message</description>
        </management-rule>

Please have a look at the blog for more information.

http://blogs.sun.com/jothir/entry/self_management_rules_dead_message
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>


-- 
"The best insurance for tomorrow is the effective use of today.”
-- Why Smart People Do Dumb Things by Dr. Mortimer Feinberg and John