concept remote file in category camel

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. IfnewExchangeisnull, 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 theoldExchange. Then, you return the merged data by returning theoldExchange. To write the CSV report file, you use thefilecomponent ❸.
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.

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.
, which consumes the remote file.