[jboss-user] [Installation, Configuration & DEPLOYMENT] - Configure email notifications

lales do-not-reply at jboss.com
Wed Jan 14 12:30:06 EST 2009


We have configured jboss to send us an email whenever an error occurs.

We're using the basic configuration in jboss-log4j.xml.

  | <appender name="SMTP" class="org.apache.log4j.net.SMTPAppender">
  |      <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
  |      <param name="Threshold" value="ERROR"/>
  |      <param name="To" value="user at xyz.com"/>
  |      <param name="From" value="jboss at xyz.com"/>
  |      <param name="Subject" value="JBoss Sever Errors"/>
  |      <param name="SMTPHost" value="localhost"/>
  |      <param name="BufferSize" value="10"/>
  |      <layout class="org.apache.log4j.PatternLayout">
  |        <param name="ConversionPattern" value="[%d{ABSOLUTE},%c{1}] %m%n"/>
  |      </layout>
  |    </appender>
  | 
  | 

Well last night an error happened in a tight loop and this morning i had 200,000 emails in my inbox.
Is there a way to configure the email notifications to prevent this? (configure it so it only sends a maximum number of emails in a given time or something)

I'm not really sure what options are supported and i didn't have much luck with google.

Any help is appreciated.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4201888#4201888

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4201888



More information about the jboss-user mailing list