+

Search Tips | Advanced Search

Establishing a TCP connection

The listener must be started explicitly before any channels are started. It enables receiving channels to start automatically in response to a request from an inbound sending channel.

The IBM MQ command used to start the IBM MQ for TCP listener is:
runmqlsr -t tcp

Alternatively, if you want to use the UNIX supplied TCP/IP listener, complete the following steps:

  1. Edit the file /etc/services. Note: To edit the /etc/services file, you must be logged in as a superuser or root. If we do not have the following line in that file, add it as shown:
    MQSeries       1414/tcp      # MQSeries channel listener
    
  2. Edit the file /etc/inetd.conf. If we do not have the following line in that file, add it as shown, replacing MQ_INSTALLATION_PATH with the high-level directory in which IBM MQ is installed:
    MQSeries stream tcp nowait root MQ_INSTALLATION_PATH/bin/amqcrsta amqcrsta
    [-m queue.manager.name]
    
  3. Enter the command refresh -s inetd.
Note: You must add root to the mqm group. You need not have the primary group set to mqm. As long as mqm is in the set of groups, we can use the commands. If you are running only applications that use the queue manager we do not need mqm group authority.


What next?

The connection is now established. You are ready to complete the configuration. Go to IBM MQ for AIX configuration.