camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Asmuss <>
Subject Re: FTP on MVS filesystem.
Date Thu, 15 Jul 2010 09:06:54 GMT


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.login("myuser", "mypass");
		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:

<from uri="ftp:'DATA.OUT.EDI'?username=myuser&password=mypass" />
<to uri="file:c:\" />

However the only result I get is:

2010-07-15 10:46:04,521 DEBUG [Camel Thread 0 -'DATA.OUT.EDI'?noop=true&password=mypass&username=myuser]
[org.apache.camel.impl.ScheduledPollConsumer]: Starting to poll:
2010-07-15 10:46:04,521 DEBUG [Camel Thread 0 -'DATA.OUT.EDI'?noop=true&password=mypass&username=myuser]
[org.apache.camel.component.file.remote.FtpConsumer]: Polling directory:
2010-07-15 10:46:04,581 DEBUG [Camel Thread 0 -'DATA.OUT.EDI'?noop=true&password=mypass&username=myuser]
[org.apache.camel.impl.ScheduledPollConsumer]: Finished polling:

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:
Sent from the Camel - Users mailing list archive at

View raw message