Its better to provide dynamic query parameters as a
Exchange.HTTP_QUERY header then you reuse same endpoint.

So you can set a HTTP_QUERY header with the value clientId=xxxx where
xxx is the client id you want, which you can get from an exchange

.setHeader(Exchange.HTTP_QUERY, simple("${exchangeProperty.clientId}"))

You can find more about that header here:

On Tue, Oct 18, 2016 at 8:25 PM, ValeryN <> wrote:
> Hello,
> Could you please give an example how to use a new serviceCall with dynamic
> URI parameter?
> Ideally from ${exchangeProperty.MY_PROPERTY}
> Wanna do something like that -
> serviceCall("http://my-service/api/v1/service?clientId=${exchangeProperty.clientId}";)
> Using serviceCall because it supports Consul service discovery
> Thank you!
> Val
> --
> View this message in context: 
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
----------------- @davsclaus
Camel in Action 2:

Reply via email to