Using the inet daemon (INETD)

To establish a TCP connection, follow these steps.

  1. Edit the file /etc/services. If you do not have the following line in the file, add it as shown:
    MQSeries       1414/tcp      # MQSeries channel listener
    Note:
    To edit this file, you must be logged in as a superuser or root.
  2. Edit the file /etc/inetd.conf. If you do not have the following line in that file, add it as shown:
    MQSeries stream tcp nowait mqm /opt/mqm/bin/amqcrsta amqcrsta
    [-m queue.manager.name]
  3. Find the process ID of the inetd with the command:
    ps -ef | grep inetd
  4. Run the command:
    kill -1 inetd processid

If you have more than one queue manager on your system, and therefore require more than one service, you must add a line for each additional queue manager to both /etc/services and inetd.conf.

For example:

MQSeries1     1414/tcp
MQSeries2     1822/tcp

MQSeries1 stream tcp nowait mqm /mqmtop/bin/amqcrsta amqcrsta -m QM1
MQSeries2 stream tcp nowait mqm /mqmtop/bin/amqcrsta amqcrsta -m QM2

This avoids error messages being generated if there is a limitation on the number of outstanding connection requests queued at a single TCP port. For information about the number of outstanding connection requests, see Using the TCP listener backlog option.