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(a)YYY.com"/>
| <param name="From" value="XXX(a)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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...