java Tomcat 轴 Web 服务客户端读取超时。超时配置
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4646893/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Tomcat axis web service client read timeout. Timeout configuration
提问by Boris Hamanov
I have a socket read timeout in Tomcat web app accessing a remote web service. The timeout is exactly 10 minutes. I have trouble finding the configuration responsible for this. Is that some kind of default?
我在访问远程 Web 服务的 Tomcat Web 应用程序中有一个套接字读取超时。超时正好是 10 分钟。我很难找到对此负责的配置。这是某种默认吗?
Edit: I use Apache Axis 1.4
编辑:我使用 Apache Axis 1.4
采纳答案by fglez
It comes from DEFAULT_MESSAGE_TIMEOUT in org.apache.axis.Constants
它来自 org.apache.axis.Constants 中的 DEFAULT_MESSAGE_TIMEOUT
/**
* The default timeout for messages.
*
* @since Axis1.2
*/
public static final int DEFAULT_MESSAGE_TIMEOUT=60*1000*10;
used in org.apache.axis.MessageContext
在 org.apache.axis.MessageContext 中使用
/**
* Maximum amount of time to wait on a request, in milliseconds.
*/
private int timeout = Constants.DEFAULT_MESSAGE_TIMEOUT;
So it seems a kind of default.
所以这似乎是一种默认。
回答by padis
In your case timeouts might be set in Axis configuration. See Timeout Configuration.
在您的情况下,可能会在 Axis 配置中设置超时。请参阅超时配置。
Or try to set your timeout programatically (Axis client options)
或者尝试以编程方式设置超时(Axis 客户端选项)
回答by Boris Hamanov
I found a link here: http://axis.apache.org/axis/java/client-side-axis.html#AxisProperties, it mentions CONNECTION_TIMEOUT_PROPERTY but does not specify any default on it.
我在这里找到了一个链接:http: //axis.apache.org/axis/java/client-side-axis.html#AxisProperties,它提到了 CONNECTION_TIMEOUT_PROPERTY 但没有指定任何默认值。