Am trying to create generic route to transfer file using Apache Camel component.
Scenario:
- multiple source files present on multiple servers.
- need to ftp the file to destination server.
Is there any way we can have from and to endpoint which can read the source and destination configurations from properties and route the files?
In this case if we need to add more source and destination, we just need to change the properties file. As am aware we cannot have dynamic from endpoint in Apache Camel.
Example:
{server1-file1} - camel route(Generic) - {server2-file1}
{server1-file1} - camel route(Generic) - {server2-file1}
{server1-file1} - camel route(Generic) - {server2-file1}