简体   繁体   English

Tomcat轴Web服务客户端读取超时。超时配置

[英]Tomcat axis web service client read timeout. Timeout configuration

I have a socket read timeout in Tomcat web app accessing a remote web service. 我在访问远程Web服务的Tomcat Web应用程序中有一个套接字读取超时。 The timeout is exactly 10 minutes. 超时正好是10分钟。 I have trouble finding the configuration responsible for this. 我很难找到对此负责的配置。 Is that some kind of default? 那是某种默认吗?

Edit: I use Apache Axis 1.4 编辑:我使用Apache Axis 1.4

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. 所以这似乎是一种默认。

In your case timeouts might be set in Axis configuration. 在您的情况下,可以在Axis配置中设置超时。 See Timeout Configuration . 请参阅超时配置

Or try to set your timeout programatically ( Axis client options ) 或者尝试以编程方式设置超时( Axis客户端选项

我在这里找到了一个链接: http//axis.apache.org/axis/java/client-side-axis.html#AxisProperties ,它提到了CONNECTION_TIMEOUT_PROPERTY但没有指定任何默认值。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM