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 tcpAlternatively, if we want to use the UNIX supplied TCP/IP listener, complete the following steps:
- Edit the file /etc/services. Note: To edit the /etc/services file, we 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- 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]- Enter the command refresh -s inetd.
Note: We 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 we 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.
Parent topic: Example IBM MQ configuration for AIX