Author: davsclaus Date: Fri Aug 12 09:31:01 2011 New Revision: 1157023 URL: http://svn.apache.org/viewvc?rev=1157023&view=rev Log: Should create daemon threads by default
Modified: camel/branches/camel-2.8.x/camel-core/src/main/java/org/apache/camel/impl/DefaultExecutorServiceStrategy.java Modified: camel/branches/camel-2.8.x/camel-core/src/main/java/org/apache/camel/impl/DefaultExecutorServiceStrategy.java URL: http://svn.apache.org/viewvc/camel/branches/camel-2.8.x/camel-core/src/main/java/org/apache/camel/impl/DefaultExecutorServiceStrategy.java?rev=1157023&r1=1157022&r2=1157023&view=diff ============================================================================== --- camel/branches/camel-2.8.x/camel-core/src/main/java/org/apache/camel/impl/DefaultExecutorServiceStrategy.java (original) +++ camel/branches/camel-2.8.x/camel-core/src/main/java/org/apache/camel/impl/DefaultExecutorServiceStrategy.java Fri Aug 12 09:31:01 2011 @@ -190,7 +190,7 @@ public class DefaultExecutorServiceStrat return newThreadPool(source, name, profile.getPoolSize(), profile.getMaxPoolSize(), profile.getKeepAliveTime(), profile.getTimeUnit(), - profile.getMaxQueueSize(), profile.getRejectedExecutionHandler(), false); + profile.getMaxQueueSize(), profile.getRejectedExecutionHandler(), true); } public ExecutorService newThreadPool(Object source, String name, String threadPoolProfileId) { @@ -205,7 +205,7 @@ public class DefaultExecutorServiceStrat Integer maxQueueSize = profile.getMaxQueueSize() != null ? profile.getMaxQueueSize() : defaultProfile.getMaxQueueSize(); RejectedExecutionHandler handler = profile.getRejectedExecutionHandler() != null ? profile.getRejectedExecutionHandler() : defaultProfile.getRejectedExecutionHandler(); // create the pool - return newThreadPool(threadPoolProfileId, source, name, poolSize, maxPoolSize, keepAliveTime, timeUnit, maxQueueSize, handler, false); + return newThreadPool(threadPoolProfileId, source, name, poolSize, maxPoolSize, keepAliveTime, timeUnit, maxQueueSize, handler, true); } else { // no profile with that id return null;