Hello,

coudn't find it in the docs... what is the official/semi-official API to load a route definition in a yaml format into the embedded Camel Context?

I tried to use camel-main to load them from files but I wanted to have more flexibility as camel-main adds a seemingly unneeded extra layer and to tweak it I anyway had to dive into the source to see how exactly it loads/reloads the routes stored in the file resources. I see the piece of code that loads the route in the RouteWatcherReloadStrategy and can try to hack it out but I'd like to have it more official and also be sure it survives the upgrade from my current 3.20.4 to, say, Camel 4. Ideally it should work with a non-file streams as I generate the route definitions from another snippet. I will provide the id and other metadata if needed.

Thank you!

Reply via email to