When you open a WebSphere MQ queue you must include an MQSERVER clause as part of the
The format of the fullName parameter, including an MQSERVER clause, is as follows.
IBMWMQC://QMNAME/QUEUE1;?MQSERVER='CHNNAME/TCP/HOSTFQDN(PORTNUM)'
The parts of the fullName parameter are listed in the following table.
Part | Description |
---|---|
QMNAME | The name of the queue manager. |
QUEUE1 | The name of the queue. |
CHNNAME | The name of the MQI (or server connection) channel. |
HOSTFQDN | The fully qualified domain name of the host where the queue manager resides. |
PORTNUM | The TCP port number associated with the channel. |
The following example shows a fullName parameter that specifies the opening of an existing queue.
IBMWMQC://QM1/QUEUE1;?MQSERVER='CHNL1/TCP/george(32001)'
The following example shows a fullName parameter that specifies the opening of a temporary reply queue. It uses a model queue definition.
IBMWMQC://QM1/REP*;?MQSERVER='CHNL1/TCP/george(32001)';Model=MODELREPLYQ