Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 93505 invoked from network); 12 Oct 2010 13:54:34 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Oct 2010 13:54:34 -0000 Received: (qmail 38288 invoked by uid 500); 12 Oct 2010 13:54:34 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 38217 invoked by uid 500); 12 Oct 2010 13:54:31 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 38206 invoked by uid 99); 12 Oct 2010 13:54:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Oct 2010 13:54:30 +0000 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=SPF_HELO_PASS,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Oct 2010 13:54:24 +0000 Received: from sam.nabble.com ([192.168.236.26]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1P5fIp-0005Ri-6s for users@camel.apache.org; Tue, 12 Oct 2010 06:54:03 -0700 Date: Tue, 12 Oct 2010 06:54:03 -0700 (PDT) From: serega To: users@camel.apache.org Message-ID: <1286891643207-3208923.post@n5.nabble.com> In-Reply-To: References: <1286819438251-3207845.post@n5.nabble.com> Subject: Re: ThreadPoolExecutor configuration MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Claus Ibsen-2 wrote: > > Hi > > The problem is that you are using 0 as the pool size. > .threads(0) > > If you use 1 or larger it should work > Yes. I tried with threads(1) and it worked. But if I use pool size greater then 0, I cannot get SynchronousQueue. http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/util/concurrent/ExecutorServiceHelper.java?revision=997755&view=markup The lines 209 - 218. -- View this message in context: http://camel.465427.n5.nabble.com/ThreadPoolExecutor-configuration-tp3207845p3208923.html Sent from the Camel - Users mailing list archive at Nabble.com.