getQueueManagerReference

 

public static MQQueueManager getQueueManagerReference(int scope);

Returns an MQQueueManager object reference if one is available within the specified scope. The scope must be one of MQC.ASSOCIATE_ALL or MQC.ASSOCIATE_THREAD , and a queue manager must already have been created with MQC.MQ_QMGR_ASSOCIATION_PROPERTY set to the scope requested.

If no queue manager has been created within the specified scope, or if MQC.ASSOCIATE_NONE is specified, this method will return null.

A call to this method is the same as calling MQEnvironment.getQueueManagerReference(int, Object) with a null Object.

Parameters

  • scope - the association scope

Returns

  • MQQueueManager, or null if no reference is available.


uj12630_