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

Reply via email to