Re: Route templates: How to set custom route id

2021-04-23 Thread Luca Burgazzoli
--- Luca Burgazzoli On Fri, Apr 23, 2021 at 6:04 PM Klug Andreas (CI/OSI3) wrote: > Hello Luca, > > Thanks for the quick reply - my fault, I forgot to mention that I'm using > a yaml-based Spring Boot configuration: > > route-template: > config: > - template-id: "myTemplate"

RE: Route templates: How to set custom route id

2021-04-23 Thread Klug Andreas (CI/OSI3)
Hello Luca, Thanks for the quick reply - my fault, I forgot to mention that I'm using a yaml-based Spring Boot configuration: route-template: config: - template-id: "myTemplate" auto-start:true ... This probably means that the addRouteFromTemp

Re: Route templates: How to set custom route id

2021-04-23 Thread Luca Burgazzoli
The signature for the method addRouteFromTemplate is: String addRouteFromTemplate(String routeId, String routeTemplateId, Map< String, Object> parameters) throws Exception; And the first argument is the route id, if null, then an auto generated one will be used --- Luca Burgazzoli On Fri,

Route templates: How to set custom route id

2021-04-23 Thread Klug Andreas (CI/OSI3)
Hello community, It might be a stupid question, but, for Camel 3.7.3, how do I set the route id for routes being created from route templates? The route templates are working fine, routes are getting created with route ids 0, 1, 2, and so on …, but e. g. for logging or monitoring purposes it’s v