Home

 

Starting a channel

 

For applications to be able to exchange messages start a listener program for inbound connections (or, in the case of UNIX systems, create a listener attachment). In Windows systems, use the runmqlsr command to start the WebSphere MQ listener process. Any inbound requests for channel attachment start MCAs as threads of this listener process.

runmqlsr -t tcp -m QM2

For outbound connections start the channel in one of the following three ways:

  1. Use the MQSC command START CHANNEL, specifying the channel name, to start the channel as a process or a thread, depending on the MCATYPE parameter. (If channels are started as threads, they are threads of a channel initiator.)
    START CHANNEL(QM1.TO.QM2)

  2. Use the control command runmqchl to start the channel as a process.
    runmqchl -c QM1.TO.QM2 -m QM1

  3. Use the channel initiator to trigger the channel.

 

Parent topic:

Getting started with objects


ic12300_


 

Home