Using environment variables

Client channel information can be supplied to an application running in a client environment by the MQSERVER, MQCHLLIB, and MQCHLTAB environment variables.

 

Using MQSERVER

If you use the MQSERVER environment variable to define the channel between your WebSphere MQ client machine and a server machine, this is the only channel available to your application, and no reference is made to the client channel definition table. In this situation, the 'listener' program that you have running on the server machine determines the queue manager to which your application will connect. It will be the same queue manager as the listener program is connected to.

If the MQCONN or MQCONNX request specifies a queue manager other than the one the listener is connected to, or if TransportType is not recognized, the MQCONN or MQCONNX request fails with return code MQRC_Q_MGR_NAME_ERROR.

 

Using MQCHLLIB and MQCHLTAB

The MQCHLLIB environment variable on the server specifies the path to the directory containing the client channel definition table. The MQCHLTAB environment variable (also on the server) specifies the name of the client channel definition table. For more information about these environment variables, see Chapter 10, Using WebSphere MQ environment variables.

 

WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.