Hi, I have a below camel route which is used to poll files from the sftp
location, the sftp location is polled in both the cases. But, when I use
camel 2.16.0 version in my classpath, the directory is being polled but
cannot see that any files are being read from there. the same code works
fine using the camel version 2.15.3 note:I did not use the absolute path
when I used 2.16.0 version <@Override         public void configure() throws
Exception {                           PropertiesComponent pc =
getContext().getComponent("properties", PropertiesComponent.class);             
   
pc.setLocation("classpath:ftp.properties");                
getContext().getShutdownStrategy().setTimeout(10);                
from("{{ftp.location.dir}}").to("file:C:\\Users\\myself\\Downloads\\sft").log("Downloaded
file ${file:name} successfile.");                         }*Logs for both
the versions:logs for camel -2.16.0:*SftpConsumer                   - Took
0.629 seconds to poll: home/xmls/2016-04-23 23:32:36,759 [] DEBUG
SftpConsumer                   - Took 0.640 seconds to poll:
home/xmls/2016-04-23 23:32:37,946 [somedir] DEBUG SftpConsumer                  
- Took 0.671 seconds to poll: home/xmls/2016-04-23 23:32:39,179 [somedir]
DEBUG SftpConsumer                   - Took 0.718 seconds to poll:
home/xmls/2016-04-23 23:32:40,355 [somedir] DEBUG SftpConsumer                  
- Took 0.671 seconds to poll: home/xmls/2016-04-23 23:32:41,729 [somedir]
DEBUG SftpConsumer                   - Took 0.858 seconds to poll:
home/xmls/2016-04-23 23:32:42,931 [somedir] DEBUG SftpConsumer                  
- Took 0.686 seconds to poll: home/xmls/2016-04-23 23:32:44,118 [somedir]
DEBUG SftpConsumer                   - Took 0.671 seconds to poll:
home/xmls/2016-04-23 23:32:45,226 [somedir] DEBUG SftpConsumer                  
- Took 0.593 seconds to poll: home/xmls/2016-04-23 23:32:46,304 [somedir]
DEBUG SftpConsumer                   - Took 0.562 seconds to poll:
home/xmls/2016-04-23 23:32:47,381 [somedir] DEBUG SftpConsumer                  
- Took 0.562 seconds to poll: home/xmls/2016-04-23 23:32:48,490 [somedir]
DEBUG SftpConsumer                   - Took 0.593 seconds to poll:
home/xmls/*logs for camel -2.15.3:*
 Total 26 files to consume2016-04-23 23:36:37,195 [home/somedir] DEBUG
SftpConsumer                   - About to process file:
RemoteFile[home/somedir/180051.XML] using exchange:
Exchange[180051.XML]2016-04-23 23:36:37,196 [home/somedir] DEBUG
SendProcessor                  - >>>>
Endpoint[file://C:%5CUsers%5Cmyself%5CDownloads%5Csft]
Exchange[180051.XML]2016-04-23 23:36:37,196 [home/somedir] DEBUG
FileOperations                 - Using InputStream to write file:
C:\Users\myself\Downloads\sft\180051.XML2016-04-23 23:36:37,227
[home/somedir] DEBUG GenericFileProducer            - Wrote
[C:\Users\myself\Downloads\sft\180051.XML] to
[Endpoint[file://C:%5CUsers%5Cmyself%5CDownloads%5Csft]]2016-04-23
23:36:37,227 [home/somedir] INFO  route1                         -
Downloaded file 180051.XML successfully.




--
View this message in context: 
http://camel.465427.n5.nabble.com/camel-route-with-camel-version-2-16-0-is-polling-directory-but-not-readingany-files-from-sftp-locati3-tp5781617.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to