I dynamically create routes using a custom processor that listens for a โcontrol route.โ It creates routes based on the contents of the message that is sent to the management route. It is used to dynamically create FTP endpoints / files by another system.
I use Camel as a plan in ServiceMix and Hawtio to control the status of routes (for example, pause them).
It works fine, but (logically) these routes are not recognized if the camel context is restarted because there is no permanent route configuration.
Is there any best practice for saving routes?
I'm thinking of re-creating routes from reading the directory structure of the endpoints of a file or using a database to save routes and their status.
source share