Defining MQI channels

To create a new channel, you have to create two channel definitions, one for each end of the connection, using the same channel name and compatible channel types. In this case, the channel types are server-connection and client-connection.

User defined channels

When the server does not automatically define channels there are two ways of creating the channel definitions and giving the WebSphere® MQ application on the WebSphere MQ MQI client machine access to the channel.

These two methods are described in detail:

  1. Create one channel definition on the WebSphere MQ client and the other on the server.

    This applies to any combination of WebSphere MQ MQI client and server platforms. Use it when you are getting started on the system, or to test your setup.

    See Creating server-connection and client-connection definitions on different platforms for details on how to use this method.

  2. Create both channel definitions on the server machine.

    Use this method when you are setting up multiple channels and WebSphere MQ MQI client machines at the same time.

    See Creating server-connection and client-connection definitions on the server for details on how to use this method.

Automatically defined channels

WebSphere MQ products on platforms other than z/OS® include a feature that can automatically create a channel definition on the server if one does not exist.

If an inbound attach request is received from a client and an appropriate server-connection definition cannot be found on that queue manager, WebSphere MQ creates a definition automatically and adds it to the queue manager. The automatic definition is based on the definition of the default server-connection channel SYSTEM.AUTO.SVRCONN. You enable automatic definition of server-connection definitions by updating the queue manager object using the ALTER QMGR command with the CHAD parameter (or the PCF command Change Queue Manager with the ChannelAutoDef parameter).

For more information about the automatic creation of channel definitions, see Auto-definition of receiver and server-connection channels.