Commit mode (commitMode)

This property indicates the type of commit mode processing to be performed for an IMS transaction.

  • The commitMode property can be set to 0 or 1 when the interactionVerb property is set to SYNC_SEND_RECEIVE.
  • When the interactionVerb property is set to SYNC_RECEIVE_ASYNCOUTPUT_SINGLE_NOWAIT, SYNC_RECEIVE_ASYNCOUTPUT_SINGLE_WAIT, SYNC_RECEIVE_CALLOUT, or SYNC_SEND, the IMS TM resource adapter uses commit mode 0.
  • Commit mode 1 is required when the interactionVerb property is set to SYNC_END_CONVERSATION.

If the commit mode is 0 and a shareable persistent socket is used for the interaction (when the CM0Dedicated property of the connection factory is set to false), the clientID property must not be specified. If commit mode 0 is specified for an interaction on a shareable persistent socket, the output message from a transaction can be purged or rerouted. The undelivered secondary output from a program-to-program switch can also be purged or rerouted.

If a dedicated persistent socket connection is used for an interaction (when the CM0Dedicated property of the connection factory is set to true), the commit mode must be 0 and the client ID of the IMSConnectionSpec object that is used for the connection must be provided. If a dedicated persistent socket is used for a commit mode 0 interaction, undelivered output messages are always recoverable and cannot be purged or rerouted.