30.8. 如何从消息标头覆盖 CXF producer 地址
camel-cxfrs
生成者支持通过将消息设置为 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()));