Accessing WebSphere MQ objects using enumeration
Objects within the Active Directory contain an enumeration function on the IADsContainer interface. This function lists
objects contained within the current object. Enumeration can be used to reach
any object in the WebSphere MQ namespace by traversing
down the object hierarchy from a known point. For example, starting from the
ADSI root of ADS:
- From the ADS container, an enumeration request returns all available namespace
containers; for example, LDAP, WinNT, and WebSphere MQ.
- From the WebSphere MQ namespace object, an enumeration request
returns MQHost containers, each representing machines that host
queue managers.
- From an MQHost/<Host> instance, an enumeration request
returns MQQueueManager containers for each queue manager hosted
by that machine.
- From an MQHost/<Host>/MQQueueManager/<QueueManager> instance,
an enumeration request returns MQAliasQueue, MQClntConnChannel, MQClusterQueue, MQClusterReceiverChannel, MQClusterSenderChannel, MQLocalQueue, MQModelQueue, MQProcess, MQReceiverChannel, MQRemoteQueue, MQRequesterChannel, MQSenderChannel, MQServerChannel, MQSvrConnChannel.
MQChannel, MQProcess and MQQueue objects are represented as containers. Enumerating
these objects results in an empty return set, as they contain no child objects.
Note:
Enumeration is an alternative to using a URL or COM address
of the object to be interrogated. However, the process implies the enumeration
of several intermediate objects.