Containment
MQQueue class objects are associated with this 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
- AlternateUserId property
- AuthorityEvent property
- BeginOptions property
- ChannelAutoDefinition property
- ChannelAutoDefinitionEvent property
- ChannelAutoDefinitionExit property
- CharacterSet property
- CloseOptions property
- CommandInputQueueName property
- CommandLevel property
- CompletionCode property
- ConnectionHandle property
- ConnectionStatus property
- ConnectOptions property
- DeadLetterQueueName property
- DefaultTransmissionQueueName property
- Description property
- DistributionLists property
- InhibitEvent property
- IsConnected property
- IsOpen property
- LocalEvent property
- MaximumHandles property
- MaximumMessageLength property
- MaximumPriority property
- MaximumUncommittedMessages property
- Name property
- ObjectHandle property
- PerformanceEvent property
- Platform property
- ReasonCode property
- ReasonName property
- RemoteEvent property
- StartStopEvent property
- SyncPointAvailability property
- TriggerInterval property
Methods
- AccessQueue method
- AddDistributionList method
- Backout method
- Begin method
- ClearErrorCodes method
- Commit method
- Connect method
- Disconnect method
Property Access
The following properties can be accessed at any time
- AlternateUserId
- CompletionCode
- ConnectionStatus
- ReasonCode
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
The Backout, Begin, Commit, Connect, and Disconnect methods set errors matching those set by the MQI calls MQBACK, MQBEGIN, MQCMIT, MQCONN, and MQDISC respectively.