首页 > 解决方案 > 如何使用 Camel toD 和 netty4-http 组件?动态url优化问题

问题描述

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

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

标签: apache-camelnetty

解决方案


我已经记录了问题CAMEL-13524。作为一种解决方法,替换toDrecipientList.

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

推荐阅读