Dedicated persistent sockets
A dedicated persistent socket is a socket connection that is assigned to a specific client ID and remains dedicated to that particular client ID until it is disconnected.
Typically, a dedicated persistent socket connection is used (or reused) serially by a single application. However, a dedicated persistent socket connection can also be used serially by multiple applications, which can obtain the socket by using the same client ID.
If different applications attempt to use a dedicated persistent socket connection by using the same client ID at the same time, the attempt by the first application will succeed. Subsequent attempts by other applications when the first application is still using its connection will receive duplicate client errors (DUPCLNT) from IMS Connect.
- Two-phase commit recovery
- IMS conversational transactions
Supported commit mode and interactions
A dedicated persistent socket can be used only for Java™ applications that execute commit mode 0 interactions.
Commit mode | Socket type | Interaction verb | Client ID | Sync level |
---|---|---|---|---|
CM1 | Shareable persistent |
|
Automatically generated and managed | None or Confirm |
CM0 | Shareable persistent |
|
Automatically generated and managed | Confirm |
Dedicated persistent |
|
Specified by client applications (the clientID property) | Confirm |
Commit mode | Socket type | Interaction verb | Client ID | Sync level |
---|---|---|---|---|
CM1 | Shareable persistent |
|
Automatically generated and managed | None or Confirm |
CM0 | Shareable persistent |
|
Automatically generated and managed | Confirm |
Dedicated persistent |
|
Specified by client applications (the clientID property) | Confirm |
The SYNC_RECEIVE_ASYNCOUTPUT interaction verb is deprecated and replaced by the SYNC_RECEIVE_ASYNCOUTPUT_SINGLE_NOWAIT interaction verb.
Message retrieval
- Messages that were placed on an IMS OTMA asynchronous output queue as a result of a failed commit mode 0 interaction
- Messages that were from an IMS application that issued an insert to an Alternate Program Communication Block (ALTPCB)
- Messages from the reroute of the output from a transaction that was executed on a shareable socket connection
You might not be able to retrieve all available output messages with the SYNC_RECEIVE_ASYNCOUTPUT_SINGLE_NOWAIT interactions when you use multiple IMS systems without the OTMA Super Member.
Dedicated persistent socket connections
- Host name: TCP/IP host name of the system that is running IMS Connect
- Port number: associated port number
- Data store name: name of the target IMS
- CM0 dedicated: true
A value of true for the CM0Dedicated property ensures that the connection factory creates dedicated persistent socket connections.
javax.resource.spi.EISSystemException: ICO0001E:
com.ibm.connector2.ims.ico.IMSTCPIPManagedConnection@23766050.processOutputOTMAMsg
(byte [], InteractionSpec,Record) error. IMS Connect returned error: RETCODE=[8],
REASONCODE=[DUPECLNT].
Duplicate client ID was used; the client ID is currently in use.