Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 10423 invoked from network); 28 Sep 2010 11:57:10 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Sep 2010 11:57:10 -0000 Received: (qmail 13866 invoked by uid 500); 28 Sep 2010 11:57:10 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 13786 invoked by uid 500); 28 Sep 2010 11:57:09 -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 13774 invoked by uid 99); 28 Sep 2010 11:57:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Sep 2010 11:57:08 +0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claus.ibsen@gmail.com designates 209.85.216.45 as permitted sender) Received: from [209.85.216.45] (HELO mail-qw0-f45.google.com) (209.85.216.45) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Sep 2010 11:57:04 +0000 Received: by qwk4 with SMTP id 4so2171876qwk.32 for ; Tue, 28 Sep 2010 04:56:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=BV5Vw8Iau/5m+x+ufHHQDVosSORw/bdXyPByCkQb2V8=; b=AKRNJT1fh5g3dGe2yoONAn+BKugKvy22zUoGq5LvaH+zdGHrGzdYN6u35M59XND5M7 EuKpHAHgk3Tbwz/5l4Mlx8MRkP1ZdjJ5Wlfc/Prl/GKcTwV5d9bZYlfzbCCzUVP/1piL XqAGk90TWohOQfAD7IwM7+2AYO4i9dtlGLntc= 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:content-transfer-encoding; b=cqOyL3udMNP/VnmR+S5REEs7No5NnTpySi8oPBxB1gh5/44jCqAsLB3oN0bQKTpmLx mfqPOg4r9uw+qIc7qTmp1+NQiKM4MPnZtUTTvQ2G60MiyaQRn6D64gSkSeOtIbILl50N BCn5ZLCH5+IpLkxXT7hFu2Bftx/dHqO4vJZvU= Received: by 10.229.95.204 with SMTP id e12mr6950358qcn.139.1285675003363; Tue, 28 Sep 2010 04:56:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.11.22 with HTTP; Tue, 28 Sep 2010 04:56:22 -0700 (PDT) In-Reply-To: References: <1284994119397-478938.post@n5.nabble.com> <1284994119388-2846686.post@n5.nabble.com> <1285659105686-2856347.post@n5.nabble.com> <1285668371165-2856470.post@n5.nabble.com> From: Claus Ibsen Date: Tue, 28 Sep 2010 13:56:22 +0200 Message-ID: Subject: Re: FTP creating connections for every file name in the uri To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Tue, Sep 28, 2010 at 1:51 PM, Marco Crivellaro wrote: > I can't use the same endpoint URI if the files to be deployed have differ= ent names. > Pooled FTP clients still leave opened the issue of having to close the co= nnection each time. Set the filename as a header instead of the uri. > > -----Original Message----- > From: Claus Ibsen [mailto:claus.ibsen@gmail.com] > Sent: marted=EC 28 settembre 2010 12:24 > To: users@camel.apache.org > Subject: Re: FTP creating connections for every file name in the uri > > On Tue, Sep 28, 2010 at 12:06 PM, Marco Crivellaro wrote: >> >> When the route is used to deliver several files (fileName option) via >> FTP a new connection to the given FTP server is created for each file >> and left opened unless we set the disconnect option to true. >> >> In my honest opinion this is leading to a lot of time being spent to >> connect and disconnect each time whilst the FTP connection can be left >> opened and simply deploy the new file. > > The ftp client is pooled and Camel grab it from a pool which has a size o= f 10 per endpoint AFAIR. > It will reuse the ftp client from the pool if the endpoint uri match. > So use the same endpoint uri and Camel re-uses the pooled ftp client if i= ts free. > > > >> -- >> View this message in context: >> http://camel.465427.n5.nabble.com/FTP-creating-connections-for-every-f >> ile-name-in-the-uri-tp478938p2856470.html >> Sent from the Camel - Users mailing list archive at Nabble.com. >> > > > > -- > Claus Ibsen > Apache Camel Committer > > Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Inte= gration: http://fusesource.com > Blog: http://davsclaus.blogspot.com/ > Twitter: http://twitter.com/davsclaus > > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email ______= ________________________________________________________________ > --=20 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