如何使用 Camel toD 和 netty4-http 组件?动态优化问题 url

How to use Camel toD and netty4-http component? Problem with optimization of dinamic url

我使用 Camel(2.23) 动态路由到 D()。我在 toD() 中传递 url "netty4-http:${property.url}" where url = "http://a-b-c.server.net:8888/service/v3" t.ex。 SendDynamicProcessor.process() 之后 在 expression.evaluate [:112] 上,原始 url 转换为 "netty4-http:http:a-b:8888/path"。 在源代码中,我看到了发生转换的行,但我看不出任何原因。有什么想法吗?

如何使用 netty4-http 组件和动态发送请求url?

我已记录问题 CAMEL-13524。 作为解决方法,将 toD 替换为 recipientList

.recipientList(simple("netty4-http:${property.url}"))