There are two ways of defining a client-connection channel on the client machine.
You can use the MQSERVER environment variable to specify a simple definition of a client-connection channel. It is simple in the sense that you can specify only a few attributes of the channel using this method.
SET MQSERVER=ChannelName/TransportType/ConnectionName
export MQSERVER=ChannelName/TransportType/ConnectionName
Where:
For example, on Windows:
SET MQSERVER=CHAN1/TCP/MCID66499
or, on a UNIX system:
export MQSERVER=CHAN1/TCP/'MCID66499'
Some more examples of a simple channel definition on Windows are:
SET MQSERVER=CHAN1/TCP/9.20.4.56 SET MQSERVER=CHAN1/NETBIOS/BOX643
Some examples of a simple channel definition on a UNIX system are:
export MQSERVER=CHAN1/TCP/'9.20.4.56' export MQSERVER=CHAN1/LU62/BOX99
Where BOX99 is the LU 6.2 ConnectionName.
On the WebSphere MQ client, all MQCONN or MQCONNX requests then attempt to use the channel you have defined, unless the channel is overridden in an MQCD structure referenced from the MQCNO structure supplied to MQCONNX.
A WebSphere MQ client application can use the connect options structure, MQCNO, on an MQCONNX call to reference a channel definition structure, MQCD, that contains the definition of a client-connection channel.
In this way, the client application can specify the ChannelName, TransportType, and ConnectionName attributes of a channel at run time, and this enables the client application to connect to multiple server queue managers simultaneously. This is not possible if you define a channel using the MQSERVER environment variable.
A client application can also specify attributes of a channel such as MaxMsgLength and SecurityExit. This allows the client application to specify values for the attributes that are not the default values, and allows channel exit programs to be called at the client end of an MQI channel.
If a channel uses the Secure Sockets Layer (SSL), a client application can also provide information relating to SSL in the MQCD structure. Additional information relating to SSL can be provided in the SSL configuration options structure, MQSCO, which is also referenced by the MQCNO structure on an MQCONNX call.
For more information about the MQCNO, MQCD, and MQSCO structures, see the WebSphere MQ Application Programming Reference.
Notices |
Downloads |
Library |
Support |
Feedback
![]() ![]() |
csqzaf0840 |