Several
types of timeouts can be used to prevent applications
from hanging due to failures during execution of an interaction.
Sometimes network problems
affect the transmission of data between
a client and IMS™. Without a way
to handle such unexpected problems, applications can stop or run in
an endless loop. One such example is router failure on the TCP/IP
path between the IMS TM
resource adapter and IMS Connect.
Several timeouts
can be used to recover from such a failure.
- The executionTimeout
property of the IMSInteractionSpec class
is used to deal with problems between IMS Connect
and IMS. Examples of such problems
include XCF communications link failure, or a failure in IMS that leads to the target transaction not
running or its output not being returned to IMS Connect.
- The socketTimeout property
of the IMSInteractionSpec class
is used to address problems affecting TCP/IP communication between
the IMS TM
resource adapter and IMS Connect.
You
can specify values for the executionTimeout and socketTimeout
properties to handle problems that occur during execution of an interaction.
The timer for execution timeout runs inside the socket timeout window.
Recommendation: Always set the socketTimeout
property to a value that is larger than the executionTimeout property
value.