【问题标题】:Camel - How to set CXF Client TimeoutCamel - 如何设置 CXF 客户端超时
【发布时间】:2013-12-09 14:47:51
【问题描述】:

我在 Fuse ESB 7 上有一个捆绑包。它使用 CXF 将消息路由到 Web 服务,如下所示:

from("vm:myEndPoint")
.to("cxf:http://remotews:8989/CreateUser/UserBean?serviceClass=com.co.Srvcl")

此连接的超时默认为 30 秒。问题是如何减少客户端的超时值?

据我了解,这个超时时间可以在 CXF Web 服务(WS 生产者端)上设置如下:

<http-conf:conduit
    name="{http://service.co.com}MyServiceBean.http-conduit">
    <http-conf:client ReceiveTimeout="4000" ConnectionTimeout="4000" />
</http-conf:conduit>

<cxf:cxfEndpoint id="myEndpoint" address="${my.url}"
    endpointName="s:srvcl-wsPort" serviceClass="com.co.Srvcl"
    serviceName="s:SrvclService" xmlns:s="http://my.comp.com">
    <cxf:properties>
        <entry key="dataFormat" value="POJO" />
        <entry key="serviceClass" value="com.co.Srvcl" />
    </cxf:properties>
</cxf:cxfEndpoint>

但是我对 Web Service 本身没有任何控制权,我只需要在客户端设置超时。

【问题讨论】:

    标签: web-services cxf fuseesb


    【解决方案1】:

    您可以在客户端执行相同的http-conf:conduit

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-04-14
      相关资源
      最近更新 更多