Export (0) Print
Expand All

IResourceManagerSink

This is a callback interface implemented by the resource manager. The interface is passed as a parameter to IResourceManagerFactory::Create and registered in the resource manager object. The DTC proxy calls the resource manager's IResourceManagerSink:TMDown callback method if the transaction manager fails. This informs the resource manager that it must perform recovery.

If the connection between the DTC proxy and the transaction manager fails, the DTC proxy first calls the resource manager's ITransactionResourceAsync::PrepareRequest and ITransactionResourceAsync::CommitRequest methods for each transaction enlistment whose outcome is known. The DTC proxy calls the resource manager's ITransactionResourceAsync::TMDown method once for each transaction enlistment whose outcome is not known. In affect, the DTC proxy will run-down all of the resource manager enlistment's. The DTC proxy then calls the resource manager's IResourceManagerSink::TMDown method. This signals the resource manager that all enlistments have been run-down and the resource manager can perform recovery. Note that only the transaction enlistments that received the ITransactionResourceAsync::TMDown method call will need to be recovered.

The resource manager needs to implement this interface.

Use this interface to receive notice of a failed transaction manager. The DTC proxy calls on IResourceManagerSink to inform the resource manager that it must perform recovery for the failed transaction manager.

IResourceManagerSink method Description

TMDown

Called by the DTC proxy to inform the RM that it must perform recovery.

For an explanation of the requirement values, see Requirements.

Platforms: Windows 2000, Windows XP, Windows Server 2003

Header: Declared in txdtc.h

Show:
© 2015 Microsoft