Notification Events

The transaction object may also support ITransactionOutcomeEvents as a notification sink. Using this notification sink, the consumer can be notified when a transaction is committed or aborted.

ITransactionOutcomeEvents is an interface implemented by the consumer in order to discover the outcome of transaction events. The consumer can call QueryInterface for the IConnectionPointContainer interface on the session, obtain the IConnectionPoint interface for IID_ITransactionOutcomeEvent, and pass its ITransactionOutcomeEvents interface to that connection point. When a commit or abort is processed, the session notifies each registered ITransactionOutcomeEvents interface of the outcome of the transaction.