17.8. 如何覆盖消息标头中的 CXF 制作者地址
camel-cxf
producer 支持通过设置消息标头 CamelDestinationOverrideUrl
来覆盖目标服务地址。
// set up the service address from the message header to override the setting of CXF endpoint exchange.getIn().setHeader(Exchange.DESTINATION_OVERRIDE_URL, constant(getServiceAddress()));
// set up the service address from the message header to override the setting of CXF endpoint
exchange.getIn().setHeader(Exchange.DESTINATION_OVERRIDE_URL, constant(getServiceAddress()));