I have this synchronous pipeline that need to be executed from time to time (lets say every 30 minutes):
Class A
) and add it to the route context;Class B
) and do some logic;Class C
) and do some logic;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.
I would approach this in the following manner:
All the interfaces to the FTP where you read the files are separate routes. Their job is only to pick up the file. They don't deal with parsing or transformation.
Then create separate routes for actually receiving the data, parsing and transformation.
Finally the delivery routes which take the data and deliver to your end destination.
This way you can customise the error handling, easier to find out what went wrong were, makes it easier to change one part without affecting everything and you can reuse the routes in several different parts.