检查了来源-根本不可能。有单次超时。
去jbossws jira愿意提交功能请求。但发现JBWS-3114和这条消息:
我已将这两个属性“javax.xml.ws.client.connectionTimeout”、“javax.xml.ws.client.receiveTimeout”添加到 cxf 和本机堆栈,用于堆栈不可知超时配置:
public void testConfigureTimeout() throws Exception
{
//Set timeout until a connection is established
((BindingProvider) port).getRequestContext().
put("javax.xml.ws.client.connectionTimeout", "6000");
//Set timeout until the response is received
((BindingProvider) port).getRequestContext().
put("javax.xml.ws.client.receiveTimeout", "1000");
String response = port.echo("testTimeout");
System.out.prinltn("Received response : response");
}
这应该包含在 3.4.0 版本中。
重新检查了源- 它就在那里!
不幸的是,根据兼容性矩阵,仅从 JBoss AS 5.0.1 起才支持 jbossws-3.4.0。