+

Search Tips | Advanced Search

Establishing a TCP connection

Alternative ways of establishing a connection and next steps.

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.

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. Find the process ID of the inetd with the command:
    ps -ef | grep inetd
    
  4. Run the command:
    kill -1 inetd processid
    
Note: You must add root to the mqm group. You do not 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 to have mqm group authority.


What next?

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