concept remote file in category camel

appears as: remote file, remote files, remotes files
Camel in Action

This is an excerpt from Manning's book Camel in Action.

At this point, you need to enrich the existing data with the orders from the remote FTP server. This is done by using pollEnrich ❶, which consumes the remote file.

To merge the data, you use AggregationStrategy ❷. First, you check whether any data was consumed. If newExchange is null, there’s no remote file to consume, and you just return the existing data. If there’s a remote file, you merge the data by concatenating the existing data with the new data and setting it back on the oldExchange. Then, you return the merged data by returning the oldExchange. To write the CSV report file, you use the file component ❸.

Camel has extensive support for interacting with filesystems. This section covers how to use the File component to read files from and write them to the local filesystem. This section also covers advanced options for file processing and ways to access remote files with the FTP component.

Camel in Action

This is an excerpt from Manning's book Camel in Action.

At this point, you need to enrich the existing data with the orders from the remote FTP server. This is done by using pollEnrich , which consumes the remote file.

Camel has extensive support for interacting with filesystems. In this section, we’ll look at how to use the File component to read files from and write them to the local filesystem. We’ll also cover some advanced options for file processing and discuss how to access remote files with the FTP component.

7.2.2. Accessing remote files with the FTP component

Probably the most common way to access remote files is by using FTP, and Camel supports three flavors of FTP: