Revisiting WMQ Basics - Client & Server Connection Channels
Client and Server Connection Channels work in pairs to facilitate communication between the MQ clients and the server queue manager. The MQ client might exist on the same, or different, platform as the queue manager.
Server Connection Channel
The Server Connection Channel is defined on the server as follows:
DEFINE CHANNEL(CHAN1) CHLTYPE(SVRCONN) TRPTYPE(TCP) + DESCR('Server-connection to Client_1')
Client Connection Channel
The Client Connection Channel is defined on the client as follows:
SET MQSERVER=CHANNEL1/TCP/server-address(port)
Where:
* server-address is IP address/machine name of the server
* (port) is the port number the server is listening on
Server Connection Channel
The Server Connection Channel is defined on the server as follows:
DEFINE CHANNEL(CHAN1) CHLTYPE(SVRCONN) TRPTYPE(TCP) + DESCR('Server-connection to Client_1')
Client Connection Channel
The Client Connection Channel is defined on the client as follows:
SET MQSERVER=CHANNEL1/TCP/server-address(port)
Where:
* server-address is IP address/machine name of the server
* (port) is the port number the server is listening on