1
我正在使用apache CXF
執行JAX-WS
。 我的Web服務通過使用JaxWsProxyFactoryBean
spring
xml配置配置:如何使用XML配置和JaxWsProxyFactoryBean增加Apache CXF超時?
<bean id="myWSClient" class="my.package.MyWSClient"
factory-bean="clientFactory"
factory-method="create" />
<bean id="clientFactory" class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean">
<property name="serviceClass" value="my.package.MyWSClient"/>
<property name="address" value="http://some.url"/>
</bean>
,後來我通過注射它:
@Resource(name = "myWSClient")
MyWSClient myWSClient;
我怎麼能管理,以增加timeout
爲MyWSClient?