MQQueueManager

 

public MQQueueManager(String queueManagerName, Hashtable properties, 
                      URL url) throws MQException;

Creates a connection to the named queue manager using a 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. Properties other than those defined by the client channel definition table can be supplied with this constructor.

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

  • properties - A Hashtable of properties to be used to establish the connection with those defined in the client channel definition that is actually used. Any properties that are not valid for this type of connection will be ignored.

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

Exceptions

  • MQException - raised if there are connection problems.


uj14940_