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
5
votes
0 answers

Using RAW() in Camel 3 endpoint DSL

I have a set of FTP endpoints in a Camel application I recently migrated to Camel 3, but I am struggling with password encoding. I have some passwords that contain special characters like +, and in the past I was able to have Camel connect to these…
Raibaz
  • 9,280
  • 10
  • 44
  • 65
5
votes
3 answers

How to write byte or stream to Apache Camel FTP to transfer file

In my code currently, I get data from the database and then I write a file out of the data. I have this kind of camel route and working solution:- private static final String INPUT_FILE_DIRECTORY_URI = "file:" + System.getProperty("user.home") …
masiboo
  • 4,537
  • 9
  • 75
  • 136
5
votes
5 answers

How to use a dynamic URI in From()

As mentioned in Apache Camel, it allows to write dynamic URI in To(), does it allows to write dynamic URI in From(). Cause I need to call the multiple FTP locations to download the files on the basis of configuration which I am going to store it in…
4
votes
1 answer

Global exception handler across the camel context – covering all routes

I have camel 10 camel routes something like below: @AllArgsConstructor public class MyCamelRoute extends RouteBuilder { /** * {@inheritDoc} */ @Override public void configure() throws Exception { } } Above MyCamelRoute…
rocky
  • 753
  • 2
  • 10
  • 26
4
votes
0 answers

Camel FTP consumer with move and streamDownload issue?

I have an issue with the FTP2 consumer (Camel 2.19.3) failing to move files after processing them when the streamDownload property is enabled. When it's set to false the route works as expected but when the property is true Camel fails to move the…
Matt
  • 75
  • 7
4
votes
2 answers

Apache Camel Chaining Routes together

Here is the scenario I'm trying to implement: Remote to an FTP Server Copy a large file (3gig+ in size) to a local folder Stream the local file into a Camel Processor, batching the file 100 lines at a time. Write the Batched set of lines out to a…
h0mer
  • 353
  • 1
  • 4
  • 10
4
votes
2 answers

How to get the actual file object from Camel FTP route exchange

In my Camel router: from() .process(new Processor() { @Override public void process(Exchange exchange) throws Exception { // I want to extract the file object from the exchange } .to(). How can I achieve…
Suman Dhar
  • 111
  • 1
  • 1
  • 9
4
votes
2 answers

Apache Camel FTP Download does not delete remote file

First of all: I am quite new to Apache Camel and to Stack Overflow! I have created a route which filters and downloads files from an SFTP Server and deletes those after processing. My problem: On my local computer the route works perfectly. When I…
Helmut
  • 51
  • 1
  • 4
3
votes
0 answers

Camel SFTP username has special character

I have to modify an existing camel SFTP project made in Camel (2.10.2). I am working with Camel for the first time and don't have any knowledge on this. There are some URI's already configured in…
Kunal
  • 31
  • 3
3
votes
2 answers

Camel sftp - For a passwordless login setup - I get Jsch exception: Auth fail

I'm trying to connect to an SFTP server for which I have passwordless authentication setup. I can connect to this server from the terminal. However, when I try to access the server using Springboot - Camel-SFTP, I get an exception: 2018-08-29…
Mounika
  • 31
  • 1
  • 5
3
votes
1 answer

Corrupted files with Camel Ftp component

I'm using apache camel to make a ftp client for downloading some files to some local directory. The program reads a xml file to get the name of the file that will be fetched from the ftp.The program seems to work except that the files downloaded are…
3
votes
1 answer

Apache Camel downloads some files incompletely from SFTP

I've been struggling to get to the bottom of why it is that some files are not correctly downloaded. It seems like certain files just won't be downloaded fully, even when testing locally and restarting my application. To make matters more difficult…
Micke
  • 106
  • 3
  • 8
3
votes
1 answer

Camel keeps SFTP Connections open leading to memory leak

I have been analyzing a memory leak in one of our applications and while analyzing a heapdump I found that >98% of the memory is occupied by Camels SharedProducerServicePool. Essentially it keeps a lot of RemoteFileProducer in its pool (in this…
3
votes
1 answer

Camel FTP with pollStrategy fails

I have a standard route with a ftp uri as a consumer endpoint with a pollStrategy defined and added to the registry. However, I am getting the following error: Caused by: java.lang.IllegalArgumentException: Could not find a suitable setter for…
Souciance Eqdam Rashti
  • 3,143
  • 3
  • 15
  • 31
3
votes
1 answer

Camel Poll Enrich apparently ignores the Batch Consumer behavior of the ftp component

I'm probrably missing something, but here is what's happening. This works: I have two files on the todo folder. If I create this route everything works fine, I received the two exchanges, one for each file, every 30 seconds: …
Will Glück
  • 1,242
  • 12
  • 17
1
2 3
13 14