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 14F271839C for ; Mon, 11 Jan 2016 09:05:34 +0000 (UTC) Received: (qmail 35873 invoked by uid 500); 11 Jan 2016 09:05:33 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 35827 invoked by uid 500); 11 Jan 2016 09:05:33 -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 35811 invoked by uid 99); 11 Jan 2016 09:05:33 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jan 2016 09:05:33 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id DDC24C307A for ; Mon, 11 Jan 2016 09:05:32 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.99 X-Spam-Level: X-Spam-Status: No, score=-1.99 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=3, RCVD_IN_RP_CERTIFIED=-3, RCVD_IN_RP_SAFE=-2, SPF_PASS=-0.001, T_REMOTE_IMAGE=0.01, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id wg7QLfNaY4dW for ; Mon, 11 Jan 2016 09:05:26 +0000 (UTC) Received: from mail02.finansbank.com.tr (mail02.finansbank.com.tr [62.108.64.50]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id B08332304B for ; Mon, 11 Jan 2016 09:05:24 +0000 (UTC) IronPort-PHdr: 9a23:kuXXHBAvE+6Vhr7dWePWUyQJP3N1i/DPJgcQr6AfoPdwSP7yrsbcNUDSrc9gkEXOFd2CrakU1ayO6+jJYi8p39WoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6kO74TNaIBjjLw09fr2zQd6MyZzvn8mJuLTtICxwzAKnZr1zKBjk5S7wjeIxxbVYF6Aq1xHSqWFJcekFjUlhJFaUggqurpzopM0roGxsvKdr6tVNS77SdK09QLgeBSwvOGA4osrxulOLGRaU62EHem4flxdMRQHd5Rr6U9H2qCSs5cRn3yzPd+7/VrExEQ+v9bsjCD7ilCoMN3sC92/LlcVqgep6phy7rgdj2ZPffJyPObs0NvfedMgbQCxaU9xNfy1LHo63b80ECO9HIfwO/Nq1nEcHsRbrXVrkP+jo0DId3nI= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2HFAgCXb5NW/xMqUQpeGQEBAQEPAQEBAQYBAQEBgjRDAVptBohTsUmDRgE5BxgBC4FqhAECgVkQAQEBAQEBAQECfAuCLQkgDAYGLwEBAQEBAQEBAQEBAQEBAQEaAi8SDwEBGwUMIV4BFRVWJgEEG4g0vkQBAQEBBgEBAQEBAR2BFIVDiFsBYhcsAYI1DEEbgRsFhiOMbYQDAYRdZYl0SoN5gx6FPoZzEINbg3M5hDVyAQEBhFtCgQgBAQE X-IPAS-Result: A2HFAgCXb5NW/xMqUQpeGQEBAQEPAQEBAQYBAQEBgjRDAVptBohTsUmDRgE5BxgBC4FqhAECgVkQAQEBAQEBAQECfAuCLQkgDAYGLwEBAQEBAQEBAQEBAQEBAQEaAi8SDwEBGwUMIV4BFRVWJgEEG4g0vkQBAQEBBgEBAQEBAR2BFIVDiFsBYhcsAYI1DEEbgRsFhiOMbYQDAYRdZYl0SoN5gx6FPoZzEINbg3M5hDVyAQEBhFtCgQgBAQE From: "Kasim Sert (Ibtech-Software Infrastructure)" To: "users@camel.apache.org" Subject: FTP and SFTP connect method difference Thread-Topic: FTP and SFTP connect method difference Thread-Index: AdFMTuYhCEHr4BIcSESOq143HY8SkA== Date: Mon, 11 Jan 2016 09:05:16 +0000 Message-ID: <7D6BE5C18544FF4EA42C01BD0AD08363633F3D2D@EXCPRDMBX03.finansbank.fiba.fgc> Accept-Language: tr-TR, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-pp-proceessed: 06cb4abd-50e4-46e9-bc1a-a9342adcd03d Content-Type: multipart/alternative; boundary="_000_7D6BE5C18544FF4EA42C01BD0AD08363633F3D2DEXCPRDMBX03fina_" MIME-Version: 1.0 --_000_7D6BE5C18544FF4EA42C01BD0AD08363633F3D2DEXCPRDMBX03fina_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I have a camel application which polls thousands of folders in both ftp and= sftp modes. Because of too many connection overhead, I am trying to pool c= onnections. I have tried to pool RemoteFileOperations objects using Default= ServicePool utility and it seem to be working good for sftp case. However i= t does not work for ftp case since it does not control if its already conne= cted to ftp at the beggining of connect method. SftpOperations case : public boolean connect(RemoteFileConfiguration configuration) throws Ge= nericFileOperationFailedException { if (isConnected()) { // already connected return true; } Since FtpOperations does not have this control it always reconnects. Is thi= s a development bug or done for purpose. What do you suggest me as a workaround for this? Thanks in advance. [Facebook] [Twitter] [https://www.finansbank.com.tr/Disclaimer/BannerImages.aspx?date=3D11.01.20= 1611:0500] Bu e-posta'n?n i?erdi?i bilgiler (ekleri dahil olmak ?zere) gizlidir. Onay?= m?z olmaks?z?n ???nc? ki?ilere a?iklanamaz. Bu mesaj?n g?nderilmek istendi?= i ki?i de?ilseniz, l?tfen mesaj? sisteminizden derhal siliniz. IBTech A.?. = bu mesaj?n i?erdi?i bilgilerin do?rulu?u veya eksiksiz oldu?u konusunda bir= garanti vermemektedir. Bu nedenle bilgilerin ne ?ekilde olursa olsun i?eri= ?inden, iletilmesinden, al?nmas?ndan, saklanmas?ndan sorumlu de?ildir. Bu m= esaj?n i?eri?i yazar?na ait olup, IBTech A.?.'nin g?r??lerini i?ermeyebilir= . The information contained in this e-mail (including any attachments)is conf= idential. It must not be disclosed to any person without our authority. If = you are not the intended recipient, please delete it from your system immed= iately. IBTech A.S. makes no warranty as to the accuracy or completeness of= any information contained in this message and hereby excludes any liabilit= y of any kind for the information contained therein or for the information = transmission, reception, storage or use of such in any way whatsoever. Any = opinions expressed in this message are those of the author and may not nece= ssarily reflect the opinions of IBTech A.S. --_000_7D6BE5C18544FF4EA42C01BD0AD08363633F3D2DEXCPRDMBX03fina_--