[jboss-user] [Installation, Configuration & DEPLOYMENT] - Log4j hit error but no mail sent?

gan.gary do-not-reply at jboss.com
Wed Nov 12 23:20:57 EST 2008


I use a JBoss for queue. I have configured the SMTPAppender in "jboss-log4j.xml" in "C:\jboss-4.2.2.GA\server\default\conf". ( the add are hid)

<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="XXX at YYY.com"/>
  |      <param name="From" value="XXX at YYY.com"/>
  |      <param name="Subject" value="JBoss Sever Errors"/>
  |      <param name="SMTPHost" value="ZZZ.com"/>
  |      <param name="BufferSize" value="10"/>
  |      <layout class="org.apache.log4j.PatternLayout">
  |        <param name="ConversionPattern" value="[%d{ABSOLUTE},%c{1}] %m%n"/>
  |      </layout>
  |    </appender>
The same settings I used for simple javaMail is working fine, but when I purposely let the JBoss hit error on my jar file, no mail sent. Any idea? where to check? And I also found the "org.jboss.mail.MailService" in jmx console cannot be configured anywhere, seems for free version.

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

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



More information about the jboss-user mailing list