Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tomcat axis web service client read timeout. Timeout configuration

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?

Edit: I use Apache Axis 1.4

like image 985
Boris Hamanov Avatar asked Jan 10 '11 12:01

Boris Hamanov


2 Answers

It comes from DEFAULT_MESSAGE_TIMEOUT in org.apache.axis.Constants

/**
 * The default timeout for messages.
 *
 * @since Axis1.2
 */
public static final int DEFAULT_MESSAGE_TIMEOUT=60*1000*10;

used in 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.

like image 63
fglez Avatar answered Nov 06 '22 12:11

fglez


In your case timeouts might be set in Axis configuration. See Timeout Configuration.

Or try to set your timeout programatically (Axis client options)

like image 1
padis Avatar answered Nov 06 '22 14:11

padis