Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 59982 invoked from network); 15 Jul 2010 09:07:27 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Jul 2010 09:07:27 -0000 Received: (qmail 53115 invoked by uid 500); 15 Jul 2010 09:07:26 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 52840 invoked by uid 500); 15 Jul 2010 09:07:24 -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 52752 invoked by uid 99); 15 Jul 2010 09:07:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Jul 2010 09:07:22 +0000 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=FREEMAIL_FROM,SPF_HELO_PASS,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 216.139.236.158 is neither permitted nor denied by domain of andreasasmuss@gmail.com) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Jul 2010 09:07:15 +0000 Received: from sam.nabble.com ([192.168.236.26]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1OZKP8-0004Fq-Ap for users@camel.apache.org; Thu, 15 Jul 2010 02:06:54 -0700 Date: Thu, 15 Jul 2010 02:06:54 -0700 (PDT) From: Andreas Asmuss To: users@camel.apache.org Message-ID: <1279184814330-1196921.post@n5.nabble.com> In-Reply-To: References: <1279117673580-1092836.post@n5.nabble.com> <1279121686754-1092886.post@n5.nabble.com> Subject: Re: FTP on MVS filesystem. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi My last post didn't make much sense. Obviously Camel also does listFiles() when polling the ftp. I've made a basic implementation of what I need to do in Java (which works): public static void main(String[] args) throws SocketException, IOException { FTPClient ftp = new FTPClient(); ftp.connect("10.0.0.1"); ftp.login("myuser", "mypass"); ftp.changeWorkingDirectory("'DATA.OUT.EDI'"); FTPFile[] ftpFiles = ftp.listFiles(); if (ftpFiles.length > 0) { for (FTPFile ftpFile : ftpFiles) { File localFile = new File("C:\\" + ftpFile.getName()); FileOutputStream os = new FileOutputStream(localFile); ftp.retrieveFile(ftpFile.getName(), os); } } } Shouldn't this in the end give the same result as doing: However the only result I get is: 2010-07-15 10:46:04,521 DEBUG [Camel Thread 0 - ftp://10.0.0.1/'DATA.OUT.EDI'?noop=true&password=mypass&username=myuser] [org.apache.camel.impl.ScheduledPollConsumer]: Starting to poll: Endpoint[ftp://10.0.0.1/'DATA.OUT.EDI'?noop=true&password=mypass&username=myuser] 2010-07-15 10:46:04,521 DEBUG [Camel Thread 0 - ftp://10.0.0.1/'DATA.OUT.EDI'?noop=true&password=mypass&username=myuser] [org.apache.camel.component.file.remote.FtpConsumer]: Polling directory: 'DATA.OUT.EDI' 2010-07-15 10:46:04,581 DEBUG [Camel Thread 0 - ftp://10.0.0.1/'DATA.OUT.EDI'?noop=true&password=mypass&username=myuser] [org.apache.camel.impl.ScheduledPollConsumer]: Finished polling: Endpoint[ftp://10.0.0.1/'DATA.OUT.EDI'?noop=true&password=mypass&username=myuser] I'll try with 2.4.0. But what does absolute path mean in this case - the local "physical" path of the ftp-server? -- View this message in context: http://camel.465427.n5.nabble.com/FTP-on-MVS-filesystem-tp1092836p1196921.html Sent from the Camel - Users mailing list archive at Nabble.com.