Setting socket timeout values

Set the socket timeout value to a number greater than the execution timeout value.

About this task

The executionTimeout property is for setting the maximum amount of time that is allowed for IMS Connect to send a message to IMS and receive a response from IMS. Because the socket timeout value encapsulates the execution timeout value, the socket timeout value must be greater than the execution timeout value. A socket might time out unnecessarily if its value is set to less than the execution timeout value.

The following table lists suggested values for socket timeouts based on execution timeout values.

Table 1. Suggested values for socket timeouts based on execution timeout values
Execution timeout value (milliseconds) Execution timeout behavior Suggested socket timeout value
0 (or no value) The default value from the IMS Connect configuration member is used. The socket timeout value must be greater than the execution timeout default value specified in the IMS Connect configuration file.
1 - 3600000 The wait response times out after the specified millisecond value. The socket timeout value must be greater than the execution timeout value.
-1 The wait response is indefinite. Set the socket timeout value to 0 so that the connection waits indefinitely.

You can set the socket timeout value in two ways. You can use the Common Client Interface (CCI) to access the getter and setter methods provided with the IMSInteractionSpec class, or use the tooling that is provided by a WebSphere® or Rational® development environment, with the optional Java™ EE Connector (J2C) feature installed.