AccessQueueManager method

Creates a new MQQueueManager object and connects it to a real queue manager by means of the WebSphere MQ client or server. As well as performing a connect, this method also performs an open for the queue manager object.

Note:
When both the WebSphere MQ server and client are installed on your system MQAX applications will run against the server by default. To run MQAX against the client, the

mqic32.dll path and filename must be specified in the

GMQ_MQ_LIB environment variable, for example, set GMQ_MQ_LIB=mqic32.dll

If successful it sets the MQQueueManager's ConnectionStatus to TRUE.

A queue manager can be connected to at most one MQQueueManager object per ActiveX instance.

If the connection to the queue manager fails, an error event is raised, and the MQSession object's ReasonCode and CompletionCode are set.

Defined in: MQSession class

Syntax:
set qm = MQSession.AccessQueueManager (Name$)

Parameter:Name$
String. Name of Queue Manager to be connected to.