Using AsyncAppender, the application does not block now. How can I know if the SMTPAppender had any problems while connecting to the smtp host ? For example, if I set up wrong host name in SMTPHost attribute for SMTPAppender, is there any exception thrown when SMTPAppender actually tries to send a message ?
Thanks in advance. Regards Mandar -----Original Message----- From: Jonathan Cowherd [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 18, 2004 11:28 AM To: Mandar Mangalvedhekar Subject: RE: Problem using SMTPAppender For logging performance, but not for your application server. I would recommend setting it up with the async appender and seeing if you find any noticeable degradation. Jonathan -----Original Message----- From: Mandar Mangalvedhekar [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 18, 2004 11:22 AM To: [EMAIL PROTECTED] Subject: RE: Problem using SMTPAppender Hi Jonathan, Thanks for your reply. Log4j documentation mentions that AsyncAppender might actually significantly degrade performance. So, I am looking for other options. Thanks Mandar -----Original Message----- From: Jonathan Cowherd [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 18, 2004 10:45 AM To: Mandar Mangalvedhekar Subject: RE: Problem using SMTPAppender Connect SMTP appender to ASYNC appender. This will stop the STMP appender from blocking other processes. Jonathan -----Original Message----- From: Mandar Mangalvedhekar [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 18, 2004 10:40 AM To: [EMAIL PROTECTED] Subject: Problem using SMTPAppender <http://www.jboss.org/index.html?module=bb&op=posting&mode=quote&p=38217 67> Hi, I found this problem while using logger.error in exception block JBoss 3.2.0 RedHat 8.0 / 9.0 Using log4j that is shipped with JBoss I was using logger.error (that logs to a file and should send an email) on exceptions. The machine did NOT have connectivity to our mail server. What was happening is the JBoss server used to hang for 3 minutes and 10 seconds every time the exception occurred. All clients had to wait till this time out expired. The problem was resolved the moment I was able to connect to mail server from that machine. Any ideas on how to solve this problem ? Thanks Mandar --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
