From 9287816fecd15f7f39cf9b1de592951b1068c9d2 Mon Sep 17 00:00:00 2001 From: Robert Davies Date: Wed, 18 Apr 2012 10:52:04 +0000 Subject: [PATCH] fix for https://issues.apache.org/jira/browse/AMQ-796 git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1327443 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/activemq/ActiveMQConnection.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/activemq-core/src/main/java/org/apache/activemq/ActiveMQConnection.java b/activemq-core/src/main/java/org/apache/activemq/ActiveMQConnection.java index 9d80b919b2..57ca8f1d07 100755 --- a/activemq-core/src/main/java/org/apache/activemq/ActiveMQConnection.java +++ b/activemq-core/src/main/java/org/apache/activemq/ActiveMQConnection.java @@ -211,7 +211,8 @@ public class ActiveMQConnection implements Connection, TopicConnection, QueueCon executor = new ThreadPoolExecutor(1, 1, 5, TimeUnit.SECONDS, new LinkedBlockingQueue(), new ThreadFactory() { public Thread newThread(Runnable r) { Thread thread = new Thread(r, "ActiveMQ Connection Executor: " + transport); - thread.setDaemon(true); + //Don't make these daemon threads - see https://issues.apache.org/jira/browse/AMQ-796 + //thread.setDaemon(true); return thread; } });