Hi Björn, thank for the reply, but i intend to create an interceptor which will inject/change the route id when the route initiated. as the existing project already have many route that i don't intend to change on all route.
Thanks and Regards, Chio Chuan On Tue, Oct 1, 2019 at 7:27 PM Björn Þór Jónsson <b...@origo.is> wrote: > > Hi Chio, > > Are you thinking about a dynamic URI in to() ? > > https://camel.apache.org/manual/latest/faq/how-to-use-a-dynamic-uri-in-to.html > > You might want to check out .toD() > > so you can do things like > > from("someProtocol://<path>") > .process(exchange -> exchange.getIn().setHeader("someId","someValue")) > .toD("anotherProdocol://<path>?${header.someId}"); > > /Björn > > ________________________________ > From: Chio Chuan Ooi <chioch...@gmail.com> > Sent: Tuesday, October 1, 2019 11:18 AM > To: users@camel.apache.org <users@camel.apache.org> > Subject: Injecting/Override the camel route with custom ID > > Hi, > > i have project that which having a lot of the route was never > assigned with id, is that any way to create class that extending the > RoutePolicySupport and override the route id based on the endpoint so > that or custom prefix ? > > or may be RouteDefinitionHelper can be use instead? > > Thanks and Regards, > Chio Chuan