3.1.5.2 Establish a Protocol Session

The queue manager establishes a session to a remote queue manager to transfer messages. This action could be the result of the queue manager receiving a message from a higher-layer application or of the queue manager retrying a connection to a remote queue manager, or of a session with outgoing messages during the queue manager startup.

Establishing a session to a remote queue manager consists of the following sequence of operations:

If the session cannot be established with the remote queue manager due to an error in these steps, the protocol MUST append an entry to the OutgoingQueueReference.ConnectionHistory array. The Status ADM attribute of the array entry MUST be set to the value specified in [MS-MQDMPR] section 3.1.1.3 that describes the error. If no appropriate value can be used, the Status ADM attribute of the array entry MUST be set to UnknownFailure. The ConnectionHistoryTime ADM attribute of the array entry MUST be set to the current time; the Error ADM attribute of the array entry MUST be set to an HRESULT value indicating the error; and the AddressList ADM attribute of the array entry MUST be set to the RemoteQMAddress ADM element.