Socket timeouts

The value for the execution timeout is the maximum amount of time the IMS TM resource adapter waits for a response from IMS Connect before disconnecting the socket and returning an exception to the client application.

If network problems or routing failures occur, the socket timeout value that you specify can prevent the client application or the IMS TM resource adapter from waiting indefinitely for a response from IMS Connect. Because the socketTimeout property is based on the TCP/IP sockets that IMS Connect and the IMS TM resource adapter use to communicate, the socketTimeout property does not apply to Local Option connections.

With the socketTimeout property, you can set individual timeout values for a particular interaction by using a socket. The value, in milliseconds, can be set on the socketTimeout property in the IMSInteractionSpec class. If the socketTimeout property is not specified for an interaction or it is set to zero milliseconds, no socket timeout value exists, and the connection waits indefinitely.

When determining the socket timeout value, you must consider other existing timeout values.

If a valid socket timeout value is specified for a particular interaction and socket timeout occurs, a java.io.IOInterruptedException and the Java™ EE J2C exception, javax.resource.spi.CommException are thrown. The Java EE J2C exception message indicates that the client has spent more time than was allocated by the socketTimeout value to communicate with IMS Connect.