ITransactedSession.Commit Method


ITransactedSessionCommit Method
Commits the active transaction on the given transacted session. This method blocks the calling thread until a response is received or the operation fails.

Namespace: SolaceSystems.Solclient.Messaging
Assembly: SolaceSystems.Solclient.Messaging (in SolaceSystems.Solclient.Messaging.dll) Version: (
ReturnCode Commit()
Function Commit As ReturnCode
ReturnCode Commit()

Return Value

Type: ReturnCode
OperationErrorException Thrown when the operation fails. Typically this is thrown when the commit request has failed and must be rolled back. When the ReturnCode is set to SOLCLIENT_ROLLBACK, further reason for the rollback is available in the subcode:

If the ReturnCode is SOLCLIENT_FAIL The status of the outstanding commit request cannot be determined. The commit may have succeeded on the message-router before the response was lost. Or the commit request may have failed (roll back). Applications that treat this failure as a rollback must allow for duplicate transactions. Possible subcodes when the ReturnCode is SOLCLIENT_FAIL are:

ObjectDisposedException Thrown when the session is already disposed (terminal state).
FatalErrorException Thrown when an unrecoverable error occurs.
See Also