MQQueueManager class

This class represents a connection to a queue manager. The queue manager can be running locally (a WebSphere® MQ server) or remotely with access provided by the WebSphere MQ client. An application must create an object of this class and connect it to a queue manager. When an object of this class is destroyed it is automatically disconnected from its queue manager.

Containment

MQQueue class objects are associated with this class.

New creates a new MQQueueManager object and sets all the properties to initial values. Alternatively use the AccessQueueManager method of the MQSession class.

Creation

New creates a new MQQueueManager object and sets all the properties to initial values. Alternatively use the AccessQueueManager method of the MQSession class.

Syntax

Dim mgr As New MQQueueManager set mgr = New MQQueueManager

Properties

Methods

Property Access

The following properties can be accessed at any time .

The remaining properties can be accessed only if the object is connected to a queue manager, and the user ID is authorized to inquire against that queue manager. If an alternate user ID is set and the current user ID is authorized to use it, the alternate user ID is checked for authorization for inquire instead

If these conditions do not apply, WebSphere MQ Automation Classes for ActiveX attempts to connect to the queue manager and open it for inquire automatically. If this is unsuccessful, the call sets a CompletionCode of MQCC_FAILED and one of the following ReasonCodes:
  • MQRC_CONNECTION_BROKEN
  • MQRC_NOT_AUTHORIZED
  • MQRC_Q_MGR_NAME_ERROR
  • MQRC_Q_MGR_NOT_AVAILABLE