Spring 将cxf参数替换为弹簧(动态)

Spring 将cxf参数替换为弹簧(动态),spring,cxf,Spring,Cxf,我有以下cxf.xml: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws" xmlns:http="http

我有以下
cxf.xml

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:jaxws="http://cxf.apache.org/jaxws"
      xmlns:http="http://cxf.apache.org/transports/http/configuration"
      xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
              http://cxf.apache.org/transports/http/configuration
      http://cxf.apache.org/schemas/configuration/http-conf.xsd">
    <http:conduit name="http://localhost:8080/mockInterfaceSoap">
        <http:client ReceiveTimeout="5000" />
    </http:conduit>
</beans>

有没有办法用弹簧替换硬编码的
ReceiveTimeout
参数值

编辑:

我想在运行时动态更改它。更改非常罕见,所以应用程序可以更改现有端点或创建新端点。

也许org.apache.cxf.jaxrs.client.WebClient有帮助。我不久前找到了对它的引用,并在以下示例中使用了它:

String endpointAddress = "*";
WebClient client = WebClient.create(endpointAddress);
HTTPConduit httpConduit = WebClient.getConfig(client).getHttpConduit();
httpConduit.setTlsClientParameters(new TLSClientParameters());
httpConduit.getTlsClientParameters().setUseHttpsURLConnectionDefaultHostnameVerifier(true);
httpConduit.getTlsClientParameters().setUseHttpsURLConnectionDefaultSslSocketFactory(true);
return httpConduit;

您可以按如下方式使用它

<jaxrs-client:client id="clientId" serviceName="clientServiceName"
                 address="${urlService}" >
</<jaxrs-client:client>

<http-conf:conduit  name="*clientServiceName*.http-conduit" >
     <http-conf:client ReceiveTimeout="1"/>
</http-conf:conduit>   


您可以从属性文件中读取它。。还是希望在运行时具有动态行为?属性文件不是问题。我需要在运行时动态地更改它。谢谢你们,但这个问题已经有将近一年的历史了。我不再在同一个平台上工作了。给你的金铲奖:哦,我的上帝!你在这里过得怎么样?这个问题已经问了5年多了。金铲奖:teamsandtastic.com/IMAGES/1-Gold.jpg