[logback-user] SMTPAppender mail not sent (logback 1.0.0, JDK 1.5)
ceki at qos.ch
Thu May 3 23:48:08 CEST 2012
On 03.05.2012 01:48, Dave wrote:
> I've found the source of the SMTPAppender issues. It with the
> ThreadPoolExecutor defined in the ContextBase class
> // 0 idle threads, 2 maximum threads, no idle waiting
> ExecutorService executorService = new ThreadPoolExecutor(0, 2, 0L,
> TimeUnit.MILLISECONDS, new LinkedBlockingQueue<Runnable>());
> If you increase the first parameter (which is the initial pool size)
> from 0 to 2, then it works as expected in both JRE 1.5 and 1.6.
Thank you Dave. Indeed, under JDK 1.5, if corePoolSize is set to 0, as
is done in ContextBase, no thread gets created.
More information about the Logback-user