Apache CamelApache Camel is a simple routing engine which provides the implementation of Enterprise Integration Pattern using Java or other Domain specific language. See more about Apache Camel and Enterprise Integration Patterns. In this example we are going to create a simple Router to copy files from one directory to another directory upon starting Camel Context.
Environment SetupCreate a maven project and add below dependency
Create a Java class to implement Router and start Camel
After running this program we can see the default source and destination directories are created and transferring the Temp.txt in to destination folder.