Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 34990 invoked from network); 3 Mar 2010 18:46:07 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Mar 2010 18:46:07 -0000 Received: (qmail 17215 invoked by uid 500); 3 Mar 2010 18:45:59 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 17119 invoked by uid 500); 3 Mar 2010 18:45:59 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 17110 invoked by uid 99); 3 Mar 2010 18:45:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Mar 2010 18:45:59 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claus.ibsen@gmail.com designates 209.85.220.210 as permitted sender) Received: from [209.85.220.210] (HELO mail-fx0-f210.google.com) (209.85.220.210) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Mar 2010 18:45:50 +0000 Received: by fxm2 with SMTP id 2so2107824fxm.36 for ; Wed, 03 Mar 2010 10:45:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type; bh=/qjzfDRbnt0e2rveVaDGdhnNLIcBwZpXmFMB9ToF+1s=; b=QzhidKYnF4Fs4b5zFjf4UyRaUNkW470IbEuCxcxITAa5me+gpyNx74HdiA9BCV0uXR r/6BSKPP87qYzk/tpagYNY2qbrWzfx0IEmBd63kjgCHHLj6dSld9e3gGtTz3KFAadE1L 3xIHZfyBh1v4rAtFGXXp/WFy5cSCiudmz/aCk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=k1GIs5snlSDFYop66PsGtv1n2e7gBfBtW65hthkMk/p6cwdP0W+hCmnqd7i4tMbRRq mCsGSY7KF5cM6ItjFJqij6Vg7PHubZyuotxu5SXptgt6ABGw5fkiYEW67YoNJpBGGYF6 8RPSk5/0394g6OHiQeesJI2xh/LNnrAYZHyNg= MIME-Version: 1.0 Received: by 10.223.62.83 with SMTP id w19mr3987887fah.22.1267641929162; Wed, 03 Mar 2010 10:45:29 -0800 (PST) In-Reply-To: <27771974.post@talk.nabble.com> References: <27771974.post@talk.nabble.com> From: Claus Ibsen Date: Wed, 3 Mar 2010 19:45:09 +0100 Message-ID: <5380c69c1003031045uf28d610l5d0ee24dac6bbc5d@mail.gmail.com> Subject: Re: Camel Mina Thread Pool Daemon mode To: dev@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 Hi Fell free to create a ticket in JIRA and if possible submit a patch and if possible including an unit test. On Wed, Mar 3, 2010 at 7:37 PM, georgiosgeorgiadis wrote: > > Hello, > > We decided to upgrade Apache Camel from version 1.6.2 to the latest stable > 2.2.0. > What we immediately noticed is that all our > "from("mina:tcp://....." > routings started exiting immediately (tcp ports closing) and they used to > keep on listening in older versions. After I dag a little bit inside the > MinaComponent class, I found out that after Camel version 2.1.0 the mina > SocketAcceptor is implemented using a cached thread pool executor service: > > IoAcceptor acceptor = new SocketAcceptor(processorCount, > ExecutorServiceHelper.newCachedThreadPool("MinaSocketAcceptor", true)); > > instead of > > IoAcceptor acceptor = new SocketAcceptor(); which was using a single running > Thread prior to 2.1.0. > > Currently the isDaemon flag is hard coded to be true in this class, which > means that these threads cannot keep the VM alive if the main VM thread has > returned. Is it possible that this flag (isDaemon) in the MinaComponent be > made configurable via options (preferably in the routing uri)?? > > Thank you in advance. > > best regards > > Georgios > -- > View this message in context: http://old.nabble.com/Camel-Mina-Thread-Pool-Daemon-mode-tp27771974p27771974.html > Sent from the Camel Development mailing list archive at Nabble.com. > > -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus