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

Reading files using Apache Camel FTP location

I have a new requirement in Apache camel where I need to read a file from an FTP location which contains the file name another file in the same FTP location. So I need to read the first file get the file name and read the second file name. How do…
Raj
  • 115
  • 8
0
votes
2 answers

Parsing csv data format in apache Camel

I followed an example from a book Camel in action. how to marshal and unmarshal csv data format. However, I want to unmarshal a csv file with (comma seperated delimiter) and split body. Then, I will use content based .choice to distribute messages…
Chayma Sakouhi
  • 79
  • 2
  • 10
0
votes
0 answers

Camel load .xl3 files to jms

I am trying to send files from sftp server to jms topic using apache Camel. Camel fails to send .xl3 files and load them to jms. This is my route: context.addRoutes(new RouteBuilder() { // @Override public void configure() { …
Chayma Sakouhi
  • 79
  • 2
  • 10
0
votes
0 answers

Camel FTP: how to work with corrupt files.

I'm newbie in apache camel. I configured a route from camel ftp to JMS topic. I noticed that the processed files, they are either deleted, moved either processed again and again. In my work, I have a lot of corrupt files that are loaded into HDFS,…
Chayma Sakouhi
  • 79
  • 2
  • 10
0
votes
1 answer

Camel executing flow after exception is thrown

I have two different routing classes(RouteBuilder). In first RouteBuilder, it picks the files and does some process and send to another route flow which is defined in the second routeBuilder. Here the trick, I defined all exception strategies in the…
Nadendla
  • 712
  • 2
  • 7
  • 17
0
votes
1 answer

Idempotent consumer with JDBC repository Apache Camel

i am working on springboot with Apache Camel so my question is how can i write code to use Idempotentconsumer with JDBC repository using apache camel.
Rajeev
  • 103
  • 1
  • 2
  • 14
0
votes
1 answer

How to Send files from SFTP to S3 using Camel and Hazelcast?

I am trying to send the files from SFTP server to S3 Bucket. I wrote a spring-boot application using apache camel and it works perfectly fine for one node. I want to scale my application to multiple nodes. To avoid processing same file by multiple…
Gangaraju
  • 4,406
  • 9
  • 45
  • 77
0
votes
1 answer

Apache Camel: FTP batch consumer doesn't print file batch index and file batch size

I am developing a route to download files from a FTP location batch-wise. Please find below my route - **from("ftp://user@ftphost/inbox?password=XXXX&binary=true&recursive=true") .log("Batch Index = ${header.CamelFileBatchIndex}, Batch…
0
votes
2 answers

Apache Camel Batch FTP Upload then disconnect

My use case is to poll a local directory for a list of new files periodically, and then upload them to a FTP server in 1 connection. The Camel route is defined in Spring XML as follows:
xlogger
  • 109
  • 1
  • 15
0
votes
1 answer

Out of memory heap size error - apache camel ftp

I am running my camel ftp to download around 10000 files from a remote linux server directory to local machine directory. I am getting an heap out of memory error as soon as it completes downloading around 2000 files. Based on the other forum…
Rajesh
  • 115
  • 1
  • 3
  • 12
0
votes
0 answers

Apache Camel does not download files from external FTP

I'm running a standalone camel route. Running my Main.class in Eclipse->Run-As->Java Application it works fine. The file is consumed and all the route works. When i do git-clone in my ec2 machine and perform mvn package -> mvn exec:java of the same…
0
votes
2 answers

How can I create a route with multiple connected ftp calls using Camel and Java DSL?

I have this synchronous pipeline that need to be executed from time to time (lets say every 30 minutes): Connect to a ftp; Read a .json file (single file) from folder A; Unmarshall the content of the file (Class A) and add it to the route…
Will Glück
  • 1,242
  • 12
  • 17
0
votes
2 answers

Dynamic URI based on file name/cfg file/property name

I am trying to pass a to URI value dynamically with a property value. That property value will be configured already in the cfg file. When the file name is extracted using CamelFileNameOnly header, it has to get passed to the to Uri endpoint. So…
0
votes
1 answer

Access to routeID in a FTP consumer when connection fails using apache camel

I am using a FTP Endpoint in a Route, and I need to log the route details to database when the connection to ftp fails for some reason, like say a connection timeout or socket timeout. I use a polling strategy, and the rollback method in this…
Ravi
  • 843
  • 2
  • 15
  • 31
0
votes
1 answer

Camel SFTP,quartz2 component gives:Cannot retrieve file :caused by GenericFileOperationFailedException,when polling multiple files from sftp

I'm trying to poll files from sftp location using the below camel route and using quartz2 scheduler, after polling couple of files i'm getting a GenricFileOperationFailedException caused by java.io.IOException: Pipe closed: JaxbDataFormat…