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
1
vote
1 answer

Camel-sftp disable host verification globally

I use Camel DSL route definition: @Component public class UploadRoutesDefinition extends RouteBuilder { ... @Override public void configure() throws Exception { ``` …
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
1
vote
1 answer

Handling Camel sftp endpoint authentication failure

Is there any sane way to handle authentication failure at an sftp endpoint? I have a camel route with sftp endpoint, specifically it moves files to sftp. When the sftp location is not available, i want to: If its an authentication failure, log, and…
Ivana
  • 643
  • 10
  • 27
1
vote
1 answer

Camel - how to limit file size for sftp consumer?

I have dsl route: from(String.format("sftp://%s@%s:%d/%s?password=%s&delete=true&readLock=changed&delay=%s", systemSettingsService.getSystemSettings().getSftpUserName(), …
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
1
vote
1 answer

Apache Camel SFTPConfiguration with Spring XML

I am working on a legacy app which is using Apache Camel with SFTP endpoints. The Camel context is defined using Spring Xml Dsl e.g.
Ayub Malik
  • 2,488
  • 6
  • 27
  • 42
1
vote
1 answer

Apache Camel FTP File should be consumed by single server

I Am having two servers which poll to same ftp location. when a file is placed in that location both the servers are picking the files. But I need only one server to pick the file and process and delete.I am using Camel 2.16.2 Version. Is there any…
Ramden
  • 87
  • 2
  • 10
1
vote
1 answer

Reuse Camel FTP route

I have a globally defined FTP Camel route. It is started from another route: exchange.getContext().startRoute("downloadRoute"); and stopped in another thread, as described here: .process(new Processor() { Thread stop; @Override public…
streetturtle
  • 5,472
  • 2
  • 25
  • 43
1
vote
1 answer

Apache Camel FTP Client Concurrency

I'm having a problem. I have an application that I'm deploying twice in two different servers, this application uses the ftp component: As I'm deploying it twice (Like this) I'm having concurrency and some files in FTP…
Julio
  • 31
  • 3
1
vote
2 answers

Move files based on exception class to a different folder with camel

How to move a File in a FTP route to a different directory based on the error? from("sftp://XXX@safsdf.de/dir/?delay=2s&move=done&moveFailed=failImport") .split() .body() .process(e -> { String fileName = (String)…
Zarathustra
  • 2,853
  • 4
  • 33
  • 62
1
vote
0 answers

Creating progress monitor for Apache Camel's FTP component

I am trying to configure Apache Camel's FTP to print more information as it work: "Connecting to FTP" when trying to connect to FTP server Should log "Starting the process of downloading from FTP " if can successfully connect and download process…
lolski
  • 16,231
  • 7
  • 34
  • 49
1
vote
2 answers

Apache Camel - File Transfer on Particular Route Call

I'm trying to create a webservice which, when called look into a local directory picks up files from there and upload to the ftp server. I'm able to create a simple route which picks file from local directory and uploads to ftp server below is the…
Siddharth Sachdeva
  • 1,812
  • 1
  • 20
  • 29
1
vote
1 answer

Apache Camel - How to configure the data port range for FTP Client Active mode

In Apache Camel, how to configure the data port range for FTP Client Active mode? I am going to set up a FTP client and have to limit the port range for active mode due to existence of firewall. However, I cannot see an option in the list of FTP…
hk6279
  • 1,881
  • 2
  • 22
  • 32
1
vote
0 answers

Converting a Authenticated curl request to Apache Camel Request

curl -s -S -u user123:321pass https://12.15.13.12:3216 --data 'Hello Man' -H 'Content-Type: text/xml' -k I need to change this to a Apache Camel route call like :- private ProducerTemplate…
Nirbhay Mishra
  • 1,629
  • 3
  • 19
  • 35
1
vote
1 answer

Non-ascii characters being consumed incorrectly by Apache-camel sftp consumer

I am using a simple camel sftp route such as this: .(sftp:account@host/some-directory?password=somePassword&charset=utf-8&delay=10000&preMove=.processing&move=.done) It polls the sftp server grabbing files and persisting the data to a database. The…
jfernandez
  • 11
  • 2
1
vote
2 answers

Why are my properties not resolved in this camel sftp route?

I'm creating a camel route that reads a file from a local server, adds some headers and then writes the content to a file on another remote sftp server. One of the headers that I dynamically set is a username that is required to log in on the final…
Geoffrey De Vylder
  • 3,963
  • 7
  • 36
  • 56
1
vote
1 answer

How to throw an Exception if file on ftp is locked? Spring DSL

My route is polling from endpoint ftp://localhost:21/folder?username=user&password=password&delay=15s&move=processed&moveFailed=error&sendEmptyMessageWhenIdle=true&passiveMode=true. If I just add readLock=rename, Camel will ignore troublesome file…
mr_piglet
  • 15
  • 6