Persistent sockets
A persistent socket is a connection between the client and IMS Connect that remains connected until either the client or IMS Connect specifically make a disconnect request. A persistent socket can exist across multiple transactions.
There are two ways that the client can force a termination:
- By sending IMS Connect a disconnect request.
- By changing the socket type to "transaction" for the last transaction entered, such as a logoff transaction.
IMS Connect can also terminate the connection when an error occurs.
The IMS Connect user message exits HWSSMPL0, HWSSMPL1, HWSSOAP1, and HWSJAVA0 support the use of persistent sockets.
A persistent socket supports both commit mode 1 (CM1 or send then commit) and commit mode 0 (CM0 or commit then send) processing.
In the following cases, IMS Connect
generates a unique client ID for a connection from IMS TM Resource Adapter on
a persistent socket:
- The IMS TM Resource Adapter requests that IMS Connect check for duplicate client IDs and the client ID provided on a new connection request is a duplicate of the client ID of an existing connection.
- The IMS TM Resource Adapter passes a blank client ID to IMS Connect.