Accessing WebSphere MQ objects using enumeration" /> Accessing WebSphere MQ objects using enumeration

 

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:

  1. From the ADS container, an enumeration request returns all available namespace containers; for example, LDAP, WinNT, and WebSphere MQ.

  2. From the WebSphere MQ namespace object, an enumeration request returns

    MQHost containers, each representing machines that host queue managers.

  3. From an

    MQHost/<Host> instance, an enumeration request returns

    MQQueueManager containers for each queue manager hosted by that machine.

  4. 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.