对于 dev 和 qa 环境,我有一个需要禁用的 CXF 端点。
<cxf:cxfEndpoint id="servResponse"
address="${serv.uri}"
serviceClass="com.company.Service"
wsdlURL="wsdl/Service.wsdl">
</cxf:cxfEndpoint>
我稍后在一条路线中使用它:
<camel:to uri="cxf:bean:servResponse"/>
问题基本上是,在我尝试过的 dev/qa 环境中serv.uri=direct:inactive2
,我得到了一个异常:
Could not find conduit initiator for address: direct:inactive2 and transport: http://schemas.xmlsoap.org/soap/http
并且服务加载失败。
我无法使用 autoStartup 在路由上禁用它,因为端点配置会发生错误。有没有办法根据属性占位符值禁用此端点(和路由)?