MQQueueManager

 

public MQQueueManager(String queueManagerName, URL url, 
                      MQConnectionManager connectionManager) 
              throws MQException;

Creates a connection to the named queue manager using a client channel definition table. Using a client channel definition table enables alternative channel definitions to be defined. The constructor selects a set of definitions from the table and these are used instead of any settings held in MQEnvironment class when opening a channel.

Parameters

  • queueManagerName - the queue manager which is used when selecting a channel definition. This can be in of the following forms:

    • "qMgrName", where the actual name of the required queue manager is passed in. The channel must connect to a queue manager of this name.

    • "*qMgrName", where "*" followed by the actual name of the required queue manager is passed in. The channel definition that is used must specify this queue manager name. This full name is passed onto the queue manager during a connect, but the queue manager that is ultimately connected to might not have the same name as specified here after the “*”.

    • "*" or "" or a name which consists entirely of blanks is passed in. The actual queue manager name is disregarded when a channel definition is being selected.

  • url - the URL which specifies the channel definition file to be used in connecting to the queue manager.

  • connectionManager - the connection manager.

Exceptions

  • MQException - raised if there are connection problems.


uj15010_