4.4.3.1 Responding to a Prepare Request Message

As part of the prepare process, the transaction manager sends TXUSER_ENLISTMENT_MTAG_PREPAREREQ user messages to each of its subordinate resource managers.

Field

Value

Value description

MsgTag

0x00000FFF

MTAG_USER_MESSAGE

fIsMaster

0x00000000

0

dwConnectionId

0x00000002

2

dwUserMsgType

0x00001033

TXUSER_ENLISTMENT_MTAG_PREPAREREQ

dwcbVarLenData

0x00000008

8

dwReserved1

0xcd64cd64

dwReserved1: 0xcd64cd64

grfRM

0x00000000

0

fSinglePhase

0x00000000

0

When the resource manager successfully completes its prepare work, it replies to its transaction manager by using a TXUSER_ENLISTMENT_MTAG_PREPAREREQDONE user message that has the prepareReqDone value set to TXUSER_ENLISTMENT_PREPAREREQDONE_OK.

Field

Value

Value description

MsgTag

0x00000FFF

MTAG_USER_MESSAGE

fIsMaster

0x00000001

1

dwConnectionId

0x00000002

2

dwUserMsgType

0x00001036

TXUSER_ENLISTMENT_MTAG_PREPAREREQDONE

dwcbVarLenData

0x00000014

20

dwReserved1

0xcd64cd64

dwReserved1: 0xcd64cd64

prepareReqDone

0x00000000

TXUSER_ENLISTMENT_PREPAREREQDONE_OK

guidReason

0x00000000

0x00000000

0x00000000

0x00000000

00000000-0000-0000-0000-000000000000

The resource manager now waits for the transaction outcome from its transaction manager.