【发布时间】:2014-10-24 10:08:55
【问题描述】:
我的 camel.xml 中有一个 cxf 端点配置,如下所示:
<cxf:cxfEndpoint id="callbackInbound"
serviceClass="ch.axpo.emis.v1.timeseriesservice.Callback"
wsdlURL="wsdl/timeseries.wsdl" endpointName="tss:CallbackPort"
address="http://somehost.com:9090/CallbackService" serviceName="tss:CallbackService"/>
在我的一条路线中,我这样称呼这个端点:
.to("cxf:bean:callbackInbound?dataFormat=PAYLOAD")
因此,现在我希望能够使用系统变量为不同的环境(DEV、TEST、PROD...)配置地址,而不是使用固定地址 (http://somehost.com:9090/CallbackService)。这是因为我使用 JBoss 7 作为骆驼的运行时环境,并且有一种非常简单的方法可以使用 JBoss 添加系统变量。 有没有办法做到这一点?或者有没有更好的方法在不同的环境中配置 cxf 端点?
谢谢, 斯文
【问题讨论】:
标签: variables configuration apache-camel environment endpoint