Home

 

Defining the channels

 

To send messages from one queue manager to another, we need to define two channels; one on the source queue manager and one on the target queue manager.

On the source queue manager

Define a channel with a channel type of SENDER. You need to specify the following:

  • The name of the transmission queue to be used (the XMITQ attribute).

  • The connection name of the partner system (the CONNAME attribute).

  • The name of the communication protocol you are using (the TRPTYPE attribute). On WebSphere MQ for z/OS, the protocol must be TCP or LU6.2. On other platforms, you do not have to specify this. We can leave it to pick up the value from your default channel definition.

Details of all the channel attributes are given in Channel attributes.

On the target queue manager

Define a channel with a channel type of RECEIVER, and the same name as the sender channel.

Specify the name of the communication protocol you are using (the TRPTYPE attribute). On WebSphere MQ for z/OS, the protocol must be TCP or LU6.2. On other platforms, you do not have to specify this. We can leave it to pick up the value from your default channel definition.

Note that receiver channel definitions can be generic. This means that if you have several queue managers communicating with the same receiver, the sending channels can all specify the same name for the receiver, and one receiver definition will apply to them all.

When you have defined the channel, we can test it using the PING CHANNEL command. This command sends a special message from the sender channel to the receiver channel and checks that it is returned.

 

Parent topic:

How to send a message to another queue manager


ic10540_


 

Home