Author: dkuleshov
Date: 2012-02-15 07:36:12 -0500 (Wed, 15 Feb 2012)
New Revision: 5641
Modified:
kernel/branches/2.4.x/exo.kernel.component.common/src/main/java/org/exoplatform/services/mail/impl/MailServiceImpl.java
Log:
EXOJCR-1733: yet another fix, as we can have one MailService per PortalContainer we sould
avoid using static field to count threads
Modified:
kernel/branches/2.4.x/exo.kernel.component.common/src/main/java/org/exoplatform/services/mail/impl/MailServiceImpl.java
===================================================================
---
kernel/branches/2.4.x/exo.kernel.component.common/src/main/java/org/exoplatform/services/mail/impl/MailServiceImpl.java 2012-02-15
11:09:59 UTC (rev 5640)
+++
kernel/branches/2.4.x/exo.kernel.component.common/src/main/java/org/exoplatform/services/mail/impl/MailServiceImpl.java 2012-02-15
12:36:12 UTC (rev 5641)
@@ -81,7 +81,7 @@
* Track current threads number used for asynchronouys mail send
* to set explicit thread names.
*/
- private static volatile int mailServiceThreadCounter = 0;
+ private volatile int mailServiceThreadCounter = 0;
public MailServiceImpl(InitParams params, final ExoContainerContext ctx) throws
Exception
{