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

Apache Camel as file explorer

I need a way to show the content of a (remote) directory and, since the main application makes an intensive use of Apache Camel, I would like to rely on Apache Camel once more to accomplish this task. So, the goal is to have a file explorer view…
AV FMX
  • 45
  • 1
  • 1
  • 7
1
vote
1 answer

Apache Camel SFTP Consumer not deleting file after reading

I see a weird behavior with Apache Camel SFTP. Even after setting the delete=true attribute, it doesn't delete the file after receiving. I am using 3.0.0-M3 version of camel-ftp Following is my SFTP…
Vicky
  • 871
  • 9
  • 16
1
vote
0 answers

choose source ip address while sending messages in camel-kafka

I am using camel KAFKA inside Apache KARAF and producing messages to KAFKA server. I have multiple interfaces configured in my system and sending(producing) messages will happen only by using the first interface managmentserver1_local_interface…
Shriram
  • 4,343
  • 8
  • 37
  • 64
1
vote
0 answers

Quarkus Camel SFTP route Quartz schedule not starting

I have configured an SFTP Camel route with Quartz scheduling in a Quarkus v1.7.1 app. The app starts up without errors, but the Quartz schedule doesn't actually start because it thinks there is no work to be done. My route is defined…
Sean
  • 1,416
  • 19
  • 51
1
vote
0 answers

Springboot & camel, datasource already closed on graceful shutdown

I created a small application that fetches log files, extract relevant data and push them in a database, all using camel components. It works pretty well unless when I stop it (gracefull shutdown). When I do so, spring closes the datasource I…
Ghurdyl
  • 1,077
  • 1
  • 12
  • 18
1
vote
1 answer

apache camel ftp: how to prevent ftp component to process file when that file being written

in my camel app, it is process file from ftp server. When I test, I found during file upload, meantime my route start pick up that file and do process. I have set readLock to 'changed' and delay is '60000', my file is around 500m. Does I missing…
user6807013
  • 39
  • 1
  • 4
1
vote
0 answers

Apache Camel: How streamDownload works internally while downloading file from SFTP and how to route its contents to queue?

Requirement is to not to download 1 GB File into memory but to download file as stream of XML. private String sftpComponent(String sftpFileName) { return "sftp://xxx/xxx" + "?username=xxx" + "&password=xxx" +…
fatherazrael
  • 5,511
  • 16
  • 71
  • 155
1
vote
0 answers

Testing the existence of a File using Apache Camel

I want to test if a given file exists at a remote SFTP server using Apache Camel. The method has to return true if exists, false if not and an Exception in case the client cannot get connected (timeout, wrong username/password, etc). In fact to test…
Luixv
  • 8,590
  • 21
  • 84
  • 121
1
vote
1 answer

Apache Camel: How to download multiple files from SFTP with Premove, Move and MoveFailed options?

I have two file names in following format: Gontagrator_1.xml Gontagrator_2.xml As of now i am picking just Gontagrater_1.xml and rename it to processing and failed once done. + "&fileName=" + sftpFileName +…
fatherazrael
  • 5,511
  • 16
  • 71
  • 155
1
vote
1 answer

PollingConsumer using smb protocol and pollEnrich()

Problem: The file is not consumed from the server I am using from("test") .routeId("test") .pollEnrich() .simple("smb://myUrl?password=test&fileName=${in.headers.test}") .aggregationStrategy((Exchange oldExchange, Exchange…
agata
  • 481
  • 2
  • 9
  • 29
1
vote
0 answers

Camel-JCFIS large file 94MB fails

I am copying file using camel-jcifs. When the files are large it started failing. Below are the options I am…
1
vote
1 answer

How to fix the error: org.apache.camel.component.file.GenericFileOperationFailedException: Cannot retrieve file?

First I had the following error: GenericFileOperationFailedException - Cannot change directory to: ..] I've fixed it by adding stepwise=false to the endpoint…
samba
  • 2,821
  • 6
  • 30
  • 85
1
vote
1 answer

I need to write JUNIT for Apache camel route

I have camel route as below public class IncomingBatchFileRoute extends RouteBuilder { @Value(CCS_PROCESSING_INCOMING_DIRECTORY) private String source; @Override public void configure() throws Exception { …
rocky
  • 753
  • 2
  • 10
  • 26
1
vote
2 answers

How to remove all routes in camel context

How to remove all route definitions in camel context ...something like below context.removeRouteDefinitions(context.getRouteDefinitions());
rocky
  • 753
  • 2
  • 10
  • 26
1
vote
1 answer

Cross checking camel ftp/sftp authentication before starting route

Can I check if Camel FTP route is valid or authentication successful before starting the route? If the password is incorrect the endpoint will not connect and will not consume, but it only get to know after starting of route. Is there any way to…
MKRISH
  • 21
  • 5