2 Replies Latest reply on Nov 13, 2008 12:58 AM by gan.gary

    Log4j hit error but no mail sent?

    gan.gary Novice

      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@YYY.com"/>
       <param name="From" value="XXX@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"/>

      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.