Home

 

Receiving on TCP

 

Receiving channel programs are started in response to a startup request from the sending channel. To do this, a listener program has to be started to detect incoming network requests and start the associated channel. You start this listener program with the STRMQMLSR command.

We can start more than one listener for each queue manager. By default, the STRMQMLSR command uses port 1414 but we can override this. To override the default setting, add the following statements to the qm.ini file of the selected queue manager (in this example, the listener is required to use port 2500):

   TCP:
     Port=2500
The qm.ini file is located in this IFS directory: /QIBM/UserData/mqm/qmgrs/queue manager name.

This new value is read only when the TCP listener is started. If you have a listener already running, this change is not be seen by that program. To use the new value, stop the listener and issue the STRMQMLSR command again. Now, whenever you use the STRMQMLSR command, the listener defaults to the new port.

Alternatively, we can specify a different port number on the STRMQMLSR command. For example:

STRMQMLSR MQMNAME(queue manager name) PORT(2500)
This change makes the listener default to the new port for the duration of the listener job.

 

Parent topic:

Defining a TCP connection


ic16990_


 

Home