I am creating routes dynamically using a custom processor listening to a "control route". It creates the routes depending on the message content which is sent to the control route. It is used to dynamically create FTP/file endpoints by another system.
I'm using Camel as blueprint bundle inside ServiceMix and Hawtio to control the state of the routes (e.g. suspend them).
It works fine but (logically) these routes are not recognized if the camel context is restarted because there is no persistent route configuration.
Is there some best practice on how to persist the routes?
I'm thinking of re-creating the routes from reading the directory structure of the file endpoints or using a database to persist the routes and their state.
recipientList
style links? It's an interesting problem you have here. – Calipash