Hi Ad 1) If you find the cause of the problem or how to reproduce it please let us know
Ad 2) The FTP and File components use the "consumer." Prefix for delay and initialDelay. http://activemq.apache.org/camel/file.html It is actually not documented very well which properties needs the consumer. prefix. Beware we might change this in the future to not require the "consumer." prefix as its not much used, and maybe a bit confusing. There is a JIRA ticket for better documentation. There are these options: consumer.initialDelay consumer.delay consumer.useFixedDelay And the times are in millis. Med venlig hilsen Claus Ibsen ...................................... Silverbullet Skovsgårdsvænget 21 8362 Hørning Tlf. +45 2962 7576 Web: www.silverbullet.dk -----Original Message----- From: borgel [mailto:[EMAIL PROTECTED] Sent: 30. juni 2008 17:40 To: [email protected] Subject: Re: Overall notes on FTP/SFTP component I tested 1.4.0-SNAPSHOT today and created a route from file to ftp. This worked very well, but i noted two issues: 1. It had problems with folders. Sometimes it worked, sometimes it didn't 2. When putting large files in the watched folder it started working on the file before it was complete. This resultet in error and I didn't find a way to set the delay and initialDelay properties. Drew McAuliffe wrote: > > I've been doing some pretty extensive work with the FTP/SFTP connectors > over the past month and wanted to post some of my impressions. I've been > working on CAMEL-570 and will be posting some changes to that issue > related to auto-delete functionality on the component. But here's a list > of issues I've been accumulating over time: > > Problems with SFTP/FTP connector > 1. No provision for deleting files when read; I added this (see > CAMEL-570). > 2. Confusing which properties require "consumer." prefix and which don't, > in documentation. For example, use of "setNames" is incorrect because it > requires "consumer.", though the documentation shows it without. > 3. Checking lastPollTime should be turned off when using autoDelete (or > similar function). I added this in the patch submitted to CAMEL-570. I ran > into problems because my FTP server (CrushFTP) wouldn't return seconds in > last modified time, so file was never checked. Not sure if that's a > problem just with CrushFTP or in how FTPClient gets last modified time. > 4. SFTP connector "file" property has to be set using full path or else it > doesn't work. For example, if the user's home directory is "/home/myuser", > and you're polling a directory called "pollMe", the docs lead you to > believe that this should work: > sftp://[EMAIL PROTECTED]/pollMe > And it does work for ftp, just not for sftp. You actually need to do the > following on SFTP: > sftp://[EMAIL PROTECTED]//home/myuser/pollMe > > Part of the problem with SFTP may be that there don't appear to be any > unit tests with SFTP, only with FTP, which may be a limitation of the test > FTP server (apache ftpserver). > > -- View this message in context: http://www.nabble.com/Overall-notes-on-FTP-SFTP-component-tp18166447s22882p18198352.html Sent from the Camel - Users mailing list archive at Nabble.com.
