If an uncaught exception occurs on the worker thread in AsyncAppender and the worker thread dies, then AsyncAppender will fall back to synchronous behavior. Possibly, you are seeing this synchronous behavior after death of the AsyncAppender worker thread.
On Jan 6, 2009, at 5:12 AM, amitshinde wrote: > > Hello Everyone, > > I am trying to send asynchronous error emails using log4j. I was > successfully able to get the emails but it looks like the emails are > synchronous and block the event processing till the email is sent. This > happens inspite of using AsyncAppender. > > I am using SMTPAppender and hooked it up with AsyncAppender (<appender-ref > ref="mail"/>) > > Did anyone else notice this? Can we send emails asynchronously at all? > > > Thanks in advance, > > Amit > > > > > > > -- > View this message in context: > http://www.nabble.com/SMTPAppender-not-asynchronous-using-AsyncAppender-tp21308582p21308582.html > Sent from the Log4j - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > 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]
