Questions tagged [camel-ftp]

Camel component for FTP/SFTP/FTPS protocols.

A camel component which provides access to remote file-systems over the FTP and SFTP protocols.

207 questions
0
votes
1 answer

Camel route should be annotated with component or configuration

I have camel route which basically used to move files from source to destination as below public class SimpleRouteBuilder extends RouteBuilder { @Override public void configure() throws Exception { …
rocky
  • 753
  • 2
  • 10
  • 26
0
votes
0 answers

Camel FTP transfer from local Apache FtpServer of a 15.6 MiB text file took 57 minutes

I used the following consumer endpoint in my class running in a JUnit test under Eclipse Oxygen: ftp://anonymous@localhost:21/test?password=****@****&fileName=TEST.TXT &localWorkDirectory=/in&noop=true&sendEmptyMessageWhenIdle=true The…
Gerold Broser
  • 14,080
  • 5
  • 48
  • 107
0
votes
1 answer

Apache Camel Ant Include pattern is not working as expected

I need to write a route which scans for files starts with batch and moves to destination directory. from(file:source?delay=2000&antInclude=batch*&readLock=changed).to(file:destination); After starting route, I have created a files in source…
rocky
  • 753
  • 2
  • 10
  • 26
0
votes
1 answer

Camel File language SortBy date pattern system time or file name pattern?

I need to sort a ftp directory by another means, I am using sortBy=file:modifed option. However, this last modified time is not fitting my use case. sometimes a file received over ftp lags or preceeds another. the contents are time series…
GLMills
  • 558
  • 1
  • 12
  • 37
0
votes
1 answer

Why does Camel throw an exception on FTP reply 125?

... org.apache.camel.component.file.GenericFileOperationFailedException: File operation failed: 125 Storing data set TEST.TRANSFER.FB80.TXT IOException caught while copying.. Code: 125 at…
Gerold Broser
  • 14,080
  • 5
  • 48
  • 107
0
votes
1 answer

"Mark Invalid" error when reading values from application.properties file

I am learning to use Apache Camel with Spring boot. There is an demo I am working on where I am picking up a file from an FTP location and dropping it to a different location. The route works when I am using the ftps uri directly in the from()…
0
votes
1 answer

How to use dynamic expression in camel poll enricher

I have below scenario using pollEnrich and Aggregator. private static final String SOURCE_FILE_COMPONENT = "file:%s?fileName=$simple{exchangeProperty.fileName}.%s"; from("direct:signatureVerificationRoute") …
rocky
  • 753
  • 2
  • 10
  • 26
0
votes
2 answers

camel ftp2 file throw error when there is no file present in the folder

I am working on reading the files from the sftp path and process the plain text files that are kept on the server every 5 hours. There is a requirement where I need to throw an exception when there is no file present/kept on the server by the…
0
votes
1 answer

How to expose the route as service so we can start or stop the route at runtime

I have following route class public class FileReaderRoute extends RouteBuilder { @Override public void configure() throws Exception { from("file:{{file.encrypt.source}}?noop=true;delete=true") …
rocky
  • 753
  • 2
  • 10
  • 26
0
votes
0 answers

Camel ftp2 quartz2 scheduler fires immediately after starting the route

Camel ftp2 when used with quartz2 cron scheduler fires immediately which is unexpected. Also it never closes the connection as there is no file to pickup. How can I make it do the first polling only at the scheduled timing ? route is generated by a…
Sagar
  • 818
  • 1
  • 6
  • 13
0
votes
1 answer

Apache Camel FTP vs FTP2

What is the difference between Camel ftp and ftp2? I want to write a new ftp endpoint but I am getting confused between these. Also if possible do state which one is better than other and why.
0
votes
1 answer

Apache Camel : Handling Pollenrich to get CamelBatchIndex

Apache Camel : I have a use case to download some set of files having an Id in the file name. i used pollenrich to get the filecount using antInclude with a regex and iterated a loop to download each file.I was able to download the files for the…
0
votes
1 answer

Camel file reading: race condition with 2 active servers

In our ESB project, we have a lot of routes reading files with file2 or ftp protocol for further processing. Important to notice, that the files we read locally (file2 protocol) are mounted network shares via different protocols (NFS, SMB). Now, we…
mcode
  • 534
  • 4
  • 18
0
votes
1 answer

Camel 2.18.0 pollEnrich connection exceptions are not caught with OnException block

Im trying to download a file with dynamic filenames using pollEnrich in a loop , when there is a conenction exception at pollEnrich it was not handled in onException block even io cannot us docatch after the pollenrich statment. i also tried using…
0
votes
1 answer

How to check whether a file downloaded from a ftp location is completed or not using apache camel

I need to check whether the file downloaded from a ftp location using camel is completed, being downloaded or the connection broke. If completed I need to do a certain function else I need to make another call
Nexus
  • 15
  • 9