Home

 

Use the TCP/IP listener

 

To start channels on UNIX, the /etc/services file and the inetd.conf file must be edited, following the instructions below:

  1. Edit the /etc/services file:

    To edit the /etc/services file, be logged in as a superuser or root. We can change this, but it must match the port number specified at the sending end. Add the following line to the file:

    MQSeries 1414/tcp
    where 1414 is the port number required by WebSphere MQ.

  2. Add a line in the inetd.conf file to call the program amqcrsta:
    MQSeries stream tcp nowait mqm ⁄mqmtop⁄bin⁄amqcrsta amqcrsta
    [-m Queue_Man_Name]

The updates are active after inetd has reread the configuration files. To do this, issue the following commands from the root user ID:

When the listener program started by INETD inherits the locale from INETD, it is possible that the MQMDE will not be honored (merged) and will be placed on the queue as message data. To ensure that the MQMDE is honored, set the locale correctly. The locale set by INETD may not match that chosen for other locales used by WebSphere MQ processes. To set the locale:

  1. Create a shell script which sets the locale environment variables LANG, LC_COLLATE, LC_CTYPE, LC_MONETARY, LC_NUMERIC, LC_TIME, and LC_MESSAGES to the locale used for other WebSphere MQ process.

  2. In the same shell script, call the listener program.

  3. Modify the inetd.conf file to call your shell script in place of the listener program.

It is possible to have more than one queue manager on the server machine. You must add a line to each of the two files, as above, for each of the queue managers. For example:

MQSeries1     1414/tcp
MQSeries2     1822/tcp
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.

 

Parent topic:

Receiving on TCP


ic13330_


 

Home