Hi Steffen, > I need to call different URLs all depending on a earlier route. > So based on a earlier header I need to update the URL that needs to be called.
The most generic way to deliver the request to the dynamic endpoint is to use Recipient List [1] EIP: from(...).recipientList(header("endpointToRouteTo")); If you plan to use HTTP-based producer like HTTP [2], or Netty HTTP [3], then just use Exchange.HTTP_URI header, just as demonstrated on the snippet below. from("direct:start") .setHeader(Exchange.HTTP_URI, simple("http://myserver/orders/${header.orderId}")) .to("http://dummyhost"); Cheers. [1] http://camel.apache.org/recipient-list [2] http://camel.apache.org/http [3] http://camel.apache.org/netty-http -- Henryk Konsek http://henryk-konsek.blogspot.com