Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E772BCD60 for ; Fri, 27 Jul 2012 00:36:56 +0000 (UTC) Received: (qmail 60584 invoked by uid 500); 27 Jul 2012 00:36:56 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 60476 invoked by uid 500); 27 Jul 2012 00:36:56 -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 Delivered-To: moderator for users@camel.apache.org Received: (qmail 41278 invoked by uid 99); 27 Jul 2012 00:29:47 -0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 216.139.236.26 is neither permitted nor denied by domain of dingqinh@gmail.com) Date: Thu, 26 Jul 2012 17:29:20 -0700 (PDT) From: billy ding To: users@camel.apache.org Message-ID: <1343348960000-5716536.post@n5.nabble.com> In-Reply-To: References: <1343004871473-5716324.post@n5.nabble.com> <1343264514875-5716494.post@n5.nabble.com> Subject: Re: Add thread pool configuration for SEDA using xml MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi William, Thanks for your reply. Maybe I didn't describe my question clearly. >From seda spec, it says "As for the difference between the two (Concurrent consumers and thread pool), note a thread pool can increase/shrink dynamically at runtime depending on load, whereas the number of concurrent consumers is always fixed." and we can use "from("seda:stageName").thread(5).process(...)" to configure the thread pool for seda via DSL, so I think using DSL can make seda threads number increase/shrink dynamically, which means it doesn't have to always be 5 concurrent consumers. However, if you use xml, I only we can configure concurrentConsumers which has fixed number threads (e.g. always 5 concurrent consumers), but I don't know how to make the same effect using xml as DSL "from("seda:stageName").thread(5).process(...)". Can someone shed some light on this? -- View this message in context: http://camel.465427.n5.nabble.com/Add-thread-pool-configuration-for-SEDA-using-xml-tp5716324p5716536.html Sent from the Camel - Users mailing list archive at Nabble.com.