Create the sender channel
Create the sender channel on the source queue manager, the channel is used to connect to the target queue manager.
Before starting
To create a channel that uses TLS, follow the instructions in Create the channels to use TLS. This can be done afterward if we want to test the solution without TLS security.
Start the MQSC interface to administer objects that are connected to the queue manager and create the sender channel. This channel is used to connect to the target queue manager called QM2.
Procedure
-
On the command-line, type:
runmqsc QM1
After a confirmation message, the tool is ready to accept commands. -
Create the sender channel, called TO.QM2. In the MQSC interface, type:
DEFINE CHANNEL(TO.QM2) CHLTYPE(SDR) CONNAME(' remoteHost ') TRPTYPE(TCP) XMITQ(QM2)
Note: The variable remoteHost is the host name or IP address of the target queue manager. The sender channel is created.