Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 24105 invoked from network); 9 Sep 2005 16:20:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Sep 2005 16:20:26 -0000 Received: (qmail 88846 invoked by uid 500); 9 Sep 2005 16:20:21 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 88808 invoked by uid 500); 9 Sep 2005 16:20:20 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 88795 invoked by uid 99); 9 Sep 2005 16:20:20 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Sep 2005 09:20:20 -0700 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=HTML_50_60,HTML_MESSAGE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jsurf@gmx.de designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 09 Sep 2005 09:20:32 -0700 Received: (qmail invoked by alias); 09 Sep 2005 16:20:17 -0000 Received: from dialer-190-190.kielnet.net (EHLO jviebigXP) [82.97.190.190] by mail.gmx.net (mp017) with SMTP; 09 Sep 2005 18:20:17 +0200 X-Authenticated: #1112833 Message-ID: <015201c5b55a$57406810$fe78a8c0@jviebigXP> From: "Jens Viebig" To: "Jakarta Commons Users List" Subject: [VFS] Specifying filesystem options globally ? Date: Fri, 9 Sep 2005 18:20:04 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_014F_01C5B56B.199AA320" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_NextPart_000_014F_01C5B56B.199AA320 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable At the moment i use this code to create a ftp connection FileSystemManager fsManager =3D null; FileSystemOptions opts =3D null; fsManager =3D VFS.getManager(); opts =3D new FileSystemOptions(); =20 DelegatingFileSystemOptionsBuilder builder =3D new = DelegatingFileSystemOptionsBuilder(fsManager); // Filesystem options, TODO make configurable in xml builder.setConfigString(opts, "ftp", "passiveMode", "true"); FileObject root =3D fsManager.resolveFile(ftpPath,opts); I don't like that i always have to give the opts to the resolveFile = method. is there a way to specify options globally in the = FileSystemManager so that every lookup of an ftp file is done in passive = mode without giving the opts ? Regards Jens btw. if i use this complete code in a loop, VFS is creating a new = FTPClientWrapper for every loop. Is this wanted behaviour ? After some = time the jvm crashes because it can't create new FTPClientWrapper. ------=_NextPart_000_014F_01C5B56B.199AA320--