Automatic reconnection attempts for OTMA connections
If IMS Connect cannot establish a connection with a remote IMS Connect instance, IMS Connect automatically attempts to reconnect to the remote IMS Connect instance every 2 minutes.
When AUTOCONN=Y is specified in the RMTIMSCON statement, IMS Connect creates connections to a remote IMS Connect instance at startup. The number of connections that IMS Connect creates at startup is determined by the RESVSOC keyword of the RMTIMSCON configuration statement.
If AUTOCONN=N, IMS Connect creates a connection only when a message is received from OTMA for delivery to the remote IMS system.
In either case, if IMS Connect cannot create the connections due to any of the following reasons, IMS Connect attempts to reconnect to the remote IMS Connect instance every 2 minutes:
- Local TCP/IP is not available
- Remote TCP/IP is not available
- Remote IMS Connect is not available
If any messages are received from OTMA either before, during, or between reconnection attempts, IMS Connect sends a NAK to OTMA that directs OTMA to leave the message at the front of the tpipe queue. When the connection to the remote IMS Connect is established, IMS Connect notifies OTMA to resume sending messages on the connection.
While IMS Connect is attempting to reconnect, the status of the connection is RETRY CONN. Also, the NUMSOC value that indicates how many sockets are open fluctuates. IMS Connect opens a socket when actively trying to reconnect. IMS Connect closes the socket during the 2-minute interval between reconnection attempts.