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

Apache camel - Writing file to ftp failed

Below is my simple file component consumer to ftp producer component route. from("file://C://fileFolder") .to("ftp://ftp01.test.com/myfolder/?username=user1234&password=pass1234&delay=5s&ignoreFileNotFoundOrPermissionError=true"); When I paste a…
Balaji Kannan
  • 407
  • 6
  • 24
3
votes
2 answers

Camel: File operation failed: Connection closed without indication.. Code: 421

I'm using Camel 2.15.2 with Apache Commons Net 3.3 on Java 8 deployed into a Tomcat container. The issue is that consistently after processing just over 200 files (> 4000 files in the directory) the route stops, the FTP client disconnects and the…
Eric Ekong
  • 107
  • 1
  • 3
  • 8
2
votes
0 answers

Camel 2.23.1 toD(sftp) with tempFileName property is creating one connection per file

With Camel 2.23.1, I use the camel "dynamic to" (toD) with an SFTP URI to add dynamic properties such as host, username, etc. This URI includes the "tempFileName" property. What I saw with this code example…
CSen
  • 21
  • 1
  • 1
2
votes
1 answer

Shutdown sftp camel route after downloading all files from sftp folder

I am developing an spring-boot application to download files from sftp using camel route. Here is my code from("sftp://username@host/folder") .convertBodyTo(File.class) .process("processor") .routeId(routeId); I want to shutdown this route…
programmer
  • 23
  • 2
2
votes
2 answers

Apache camel sftp org.apache.camel.NoTypeConversionAvailableException: No type converter available to convert java.io.InputStream

Currently I'm stuck with Downloading files from ftp server due to type conversion. So the route mentioned below is being called from a pipeline which has my custom POJO as the body set already. And the custom pojo is as below : public class…
Parul Chauhan
  • 126
  • 2
  • 7
  • 20
2
votes
1 answer

How to add signature for file using camel

I need to add signature to a file using apache camel. when i checked in camel documentation, found crypto:sign component where it creates the signature and stores it in the Header keyed by the constant…
rocky
  • 753
  • 2
  • 10
  • 26
2
votes
1 answer

How to validate the JSON Request in camel rest

I need to validate incoming request to the camel rest service based on some schema. for example. In request as given below { "routeId" : "fileBatchRoute", "action" : "start", "sourceLocation" : "sourceDirectory", "destinationLocation" :…
rocky
  • 753
  • 2
  • 10
  • 26
2
votes
2 answers

How to stop camel context gracefully in Springboot application

I am using Camel with Spring Boot. The camel context is started on application started and it keeps running. On application shut down how to shut down the camel context. Thanks in advance.
2
votes
1 answer

Camel SFTP file processing issue

I am trying to fetch file from SFTP server using camel ftp component and process it in a custom way.I am able to successfully connect to sftp server and fetch the file but the exchange body contains remote file object and the file contains…
Ravi
  • 1,247
  • 4
  • 15
  • 35
2
votes
3 answers

Changing directory from home to root in camel-ftp

I am using the following in my Apache Camel configuration:
Sukul Amrit
  • 75
  • 1
  • 10
2
votes
0 answers

Camel sftp Writing file failed with: Cannot store file

I have couple days, look around apache Camel and transfer files over sftp server to jms queue or topic. I faced a problems at a level of configuring an endpoints (consumer) , also routes (from file to sftp, from sftp to jms.....). Nothing works to…
Chayma Sakouhi
  • 79
  • 2
  • 10
2
votes
1 answer

Apache Camel FTP filefilter

How I can configurate my filefilter without this , just use JAVA
izlo1dro1d
  • 23
  • 3
2
votes
3 answers

Apache Camel - Pass Filename from route1 to route2 which FTPs

I have a requirement of generating a file from webservice and FTP to a location. Route1: from("direct:start") .routeId("generateFileRoute") .setHeader(Exchange.HTTP_METHOD, constant("GET")) .setHeader(Exchange.HTTP_URI, simple(URL)) …
user1637487
  • 241
  • 1
  • 9
  • 17
2
votes
2 answers

How to stop JSCH logs for camel sftp consumer

My camel SFTP consumer connects to server every 10 seconds and during every connect it prints huge log messages as mentioned here. 02-05-2016 20:48:34,441 INFO (org.apache.camel.component.file.remote.SftpOperations) [Camel (camel-99) thread…
shakti
  • 33
  • 4
2
votes
2 answers

Apache Camel, FTP consumer: How to take header parameters of the previous route?

I have several camel routes and I set a header in the Exchange object with the name FILE_NAME in the one route while reading the data from a DB. As a next step this route goes further to my FTP route where the file should be downloaded. The problem…
Tamas
  • 736
  • 2
  • 11
  • 27
1
2
3
13 14