I have this synchronous pipeline that need to be executed from time to time (lets say every 30 minutes):
- Connect to a ftp;
- Read a .json file (single file) from folder A;
- Unmarshall the content of the file (
Class A
) and add it to the route context; - Read all the .fixedlenght files (multiple files) from folder B (preMove: processingFolder, move: doneFolder, moveFailed: errorFolder);
- Unmarshall the content of the files (
Class B
) and do some logic; - Read all the .xml files (multiple files) from folder C (preMove: processingFolder, move: doneFolder, moveFailed: errorFolder);
- Unmarshall the content of the files (
Class C
) and do some logic; - End the route.
It is a single pipeline created with Java DSL. If a error happen, the process stop. I'm really struggling with Camel to create this. It is possible or I will need to handle this manually? I created some demos, but none of them are properly working.
Any help will be appreciated.