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
2
votes
2 answers

Apache Camel: Add bean to registry for custom poll strategy

I need to implement a custom PollingConsumerPollStrategy implementation on a route inside a RouteBuilder. The examples I found use spring to create a bean, but i am not using Spring in my project. How do i add MyPollStrategy to registry and use it…
Sumeet Kashyap
  • 143
  • 4
  • 15
2
votes
1 answer

How to get uri parameter in custom component in Camel?

If I want to have a ftp custom component in apache-camel, how to set the ftp uri parameter to ftpConfiguration ? I have try to used a Uri param annotation to get the uri parameter but failed. Does anyone have idea ? Below is my sample code: public…
hk6279
  • 1,881
  • 2
  • 22
  • 32
2
votes
1 answer

Apache Camel FTP- Consumption from FTP slows down on increasing the number of files, while the total size of files remain same

I am new to camel. I am trying to consume from secure ftp server to my local file folder but the consumption speed is really very slow. Please suggest the parameters which might help in tuning the performance . My route is as follows…
Camel User
  • 21
  • 3
2
votes
0 answers

Using disconnect and move/preMove in FTP component of Apache Camel

I'm using Apache Camel to read files from an FTP server. It has to be listening for new files without being restarted by several days. Some days there are files to download, other days there aren't. The first issue I had was that when I put files in…
dgaviola
  • 2,421
  • 2
  • 26
  • 37
2
votes
1 answer

No component found with scheme: sftp Apache Camel 2.14.1, ServiceMix 5.2.0

I’ve been having a lot of problems with the FTP component of Camel. I'm using Apache Camel 2.14.1 and Apache ServiceMix 5.2.0 The issue is that I’m getting this error whenever I try to do a FTP/SFTP…
dabug
  • 123
  • 2
  • 11
2
votes
2 answers

Camel SFTP connection jcraft jsch exception

I am using camel version 2.13.1,and camel-ftp version 2.13.1. I am trying to connect to sftp server through camel route. I am getting some error related to jCraft Jsch exception as shown…
Nomad
  • 751
  • 4
  • 13
  • 34
2
votes
1 answer

Apache Camel SFTP Zero size file download

I am downloading PDF file from server using camel SFTP component. Sometime it is downloading zero size file. but actual size is 4kb. I think camel is downloading the file while it is being written. kindly let me know how to download the file after…
Gnana
  • 2,130
  • 5
  • 26
  • 57
1
vote
0 answers

How to connect to FTPS server with data connection using same TLS session from Apache Camel using custom FTPSClient?

I would like to send files to FTPS server using Apache Camel. The problem is that this FTPS server requires that the TLS/SSL session is to be reused for the data connection. And I can't set 'TLSOptions NoSessionReuseRequired' option for security…
1
vote
0 answers

Duplicates messages processing when using Camel SFTP and Hazelcast Idempotent Repository

I am using the Camel SFTP component in version 3.12.0 with Hazelcast Idempotent Repository to prevent a message from being processed by several cluster nodes and with readLock=rename to avoid a message being processed while it is still be being…
1
vote
0 answers

Camel how to clear the cache of LRUCache at the end of router?

From this page: https://camel.apache.org/components/latest/sftp-component.html, I see that if idempotent=true, LRUCache will hold 1000 entries to avoid consuming the same files over and over again, it's really good option. However if I want to test…
1
vote
1 answer

How do I specify the directory path correctly for an SFTP server?

I have the /test directory by this path on the SFTP server - /out/test (root directory -> /test). I set this path in the SFTP URL for my application - sftp://username@host.com:22/out/test?fileName=file.txt, but it throws an exception: Cannot change…
Andrei Kulik
  • 446
  • 1
  • 5
  • 21
1
vote
1 answer

Why we need Apache Camel in our application?

I am beginner to apache camel, and i need some clarity in it. Apache camel is an alternative for microservices? Or what is the advantage of this routing integration. It has separate HTTP component but its configuration method looks…
kumaranc
  • 105
  • 1
  • 11
1
vote
1 answer

Why does camel move file with only partial data?

Below is my code: from("quartz2:report?cron=" + cronExpression) .routeId("jms:queue:test") .setHeader("CURRENT_TIME", simple("${date:now:MM-dd-yyyy HH:mm:ss.S}")) //Writing column names for report to the file .setBody() …
1
vote
0 answers

apache camel file download from sftp to local directory. I get this error :com.jcraft.jsch.SftpException: No such file

I am able to successfully download one/all files from a sftp directory using the following uri in camel route definition my uri exp: sftp://[username@]hostName[:port]/directoryName[?options] When I use option as &move=.done but I get the following…
allesgute
  • 11
  • 2
1
vote
0 answers

How to avoid java memory heap space you are modifying data inside a camel route?

I am new to java and am currently trying to update the body of a message that is transported within a camel route (via talend). So far all is well, I manage to modify this message. However if the file is too large the JVM goes out of memory. How to…
Denhag
  • 7
  • 2
1 2
3
13 14