Defining the client-connection channel

Define a channel with the same name and a channel type of client-connection.

You must state the connection name (CONNAME). For TCP/IP this is the network address or host name of the server machine. It is also advisable to specify the queue manager name (QMNAME) to which you want your WebSphere MQ application, running in the client environment, to connect. See Running applications on WebSphere MQ clients.

For example:

DEFINE CHANNEL(CHAN2) CHLTYPE(CLNTCONN) TRPTYPE(TCP) +
CONNAME(9.20.4.26) QMNAME(QM2) DESCR('Client-connection to Server_2')

On platforms other than z/OS(R), this channel definition is generally stored in a file called the client channel definition table, which is associated with the queue manager running on the server. The client channel definition table can contain more than one client-connection channel definition. For more information about the client channel definition table, and for the corresponding information about how client-connection channel definitions are stored on z/OS, see Client channel definition table.

Figure 8. Defining the client-connection channel
MQI channel CHAN2: server-connection to QM2 and client-connection to the client.