Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 66402 invoked from network); 4 Apr 2008 20:38:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Apr 2008 20:38:43 -0000 Received: (qmail 20079 invoked by uid 500); 4 Apr 2008 20:38:38 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 20007 invoked by uid 500); 4 Apr 2008 20:38:38 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list user@commons.apache.org Delivered-To: moderator for user@commons.apache.org Received: (qmail 8642 invoked by uid 99); 3 Apr 2008 16:07:41 -0000 X-ASF-Spam-Status: No, hits=4.1 required=10.0 tests=DNS_FROM_RFC_BOGUSMX,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of cburk@cs.utsa.edu designates 129.115.29.15 as permitted sender) From: "Cory Burkhardt" To: Subject: Is FTPClient.retrieveFile thread safe? Date: Thu, 3 Apr 2008 11:06:55 -0500 Message-ID: <007101c895a4$bd365990$37a30cb0$@utsa.edu> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0072_01C8957A.D4650C80" X-Mailer: Microsoft Office Outlook 12.0 thread-index: AciVpLrYRWXJeWTXSD2Vux2SRAvsvg== Content-Language: en-us X-Virus-Checked: Checked by ClamAV on apache.org ------=_NextPart_000_0072_01C8957A.D4650C80 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit The Net FAQ says "If you want to share a single FTPClient instance between multiple threads, you must serialize access to the object with critical sections." Since the retrieveFile method blocks until the download is complete, does that mean I cannot use this method from multiple threads and I am required to use the retrieveFileStream method to write the file manually instead? ------=_NextPart_000_0072_01C8957A.D4650C80--