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
0
votes
1 answer

How to enrich the csv content data with additional fields and convert into text file with pipe as delimiter using apache camel

I have a csv file with input content separated with comma ",". I want to convert that into text file with "|" delimiter. I'm using apache camel CsvDataFormat to convert the given csv data format.I can be able to convert the csv content to pipe…
TechGeek
  • 480
  • 1
  • 8
  • 22
0
votes
1 answer

Apache Camel route marshall Java Object to XML

I have java object with XML annotations @XmlRootElement(name = "ROOT") public class Root { @XmlAttribute(name = "ATTR") private long site; @XmlElement(name = "LIST") List transaction; } and I have route to…
Hayami Pysh
  • 285
  • 1
  • 5
  • 14
0
votes
2 answers

Process 2 different files with camel

how can i read two different files with camel (using ftp) and write an unique JSON? From what i know the "from" can only read one file. from("ftp://myftp@localhost:21" + "/myFolder/" + "?" + …
Alex
  • 53
  • 1
  • 8
0
votes
0 answers

Which Apache Camel method converts Java Object to XML?

How to Marshal back bean body to XML .bean("contentEnrichService", "getDataFromBubla") .unmarshal(new JaxbDataFormat(JAXBContext.newInstance(EmploymentUpdateRequest.class))) .bean("contentEnrichService", "updateEmployeeData") .marshal(new…
fatherazrael
  • 5,511
  • 16
  • 71
  • 155
0
votes
1 answer

How to enrich message in File Route from SFTP to JMS in clustered environment using Apache Camel?

We are going to read a file from SFTP and put employees in database. Following is XML Structure The strategy i think is: Pick XML file…
fatherazrael
  • 5,511
  • 16
  • 71
  • 155
0
votes
1 answer

Does Apache Camel create multiple threads for multiple from() inside configure() in 3 server nodes?

If we deploy following camel code in three Wildfly nodes: configure(){ from("sftp").to("MyQueue") from("MyQueue").to("database") } How does program execute in all three nodes? Does it creates 6 threads i.e 1 thread for from("sftp") - Polling…
fatherazrael
  • 5,511
  • 16
  • 71
  • 155
0
votes
1 answer

Apache camel multicast (ftps & file) producing empty file

I have created a camel (2.20.1) route using groovy DSL. I need to use multicast for 2 endpoints viz. ftps and file. If the order of routes is ftps and file then file is property written on ftp server but on file system empty file is written (with…
Murlidhar
  • 11
  • 2
0
votes
0 answers

Camel FTP Cannot list directory with 'File not found' pre-pending additional '/' in front of directory automatically

I am trying to poll file from a Windows Server. SFTP hosted using IP Switch / WS_FTP. I need to poll files form a dynamic folder based on a specific date, so I have provided the parent directory in endpoint URI, enabled recursive flag and add…
Sagar
  • 818
  • 1
  • 6
  • 13
0
votes
1 answer

Camel sftp doesn't poll on Unix more than 2 levels deep

Camel sftp is unable to poll more than 2 levels deep when the java code runs on Linux, but it works fine on Windows. For example, polling files from sftp://user@domain:22/folder1/folder2?... works on both Unix and Windows. But, when I use…
Valahu
  • 763
  • 2
  • 8
  • 15
0
votes
1 answer

Camel from smb - combining "delete=true" and filtering by filename

I need to convert files from extension A to B matching only a specific filename, The file with the original extension should be deleted on processing. However, other files in the directory should not be deleted. I am using Apache Camel 2.17.2 (and…
0
votes
2 answers

Apache Camel File2 include only specific subfolders from the source directory

I am using Apache Camel File2 (SFTP) (with Camel Latest version) and Java8 API. I am trying to develop a MyRouteBuilder.java class which extends RouteBuilder class and implements the configure method. I want to transfer files from source path to…
Nagesh
  • 277
  • 6
  • 14
0
votes
0 answers

how to use camel consumer template to consume all files in directory

I need to read all files from the directory and to process each file using consumerTemplate. something like below. consumerTemplate.receiveBody(directory, File.class)
rocky
  • 753
  • 2
  • 10
  • 26
0
votes
1 answer

How to read a file and send as stream to another endpoint

I need to read a file using apache camel and send to another endpoint as stream. public class SimpleRouteBuilder extends RouteBuilder { @Override public void configure() throws Exception { …
rocky
  • 753
  • 2
  • 10
  • 26
0
votes
0 answers

camel-ftp: destination filename encoding error

developing on windows 10. Using Win10 IIS FTP server. create a camel context to transfer ftp files. Problem comes out on Chinese Files transfer. The Chinese file in destination path garbled. I try to add charset(ios-8859-1, utf-8, gb2312 ...) param…
0
votes
1 answer

How to create ConsumerTemplate in apache camel

I have camel processor which reads a file from directory using ConsumerTemplate as shown below @Component public class FileReaderProcessor implements Processor { @Consume private ConsumerTemplate consumerTemplate; /** *…
rocky
  • 753
  • 2
  • 10
  • 26