Start MQ Listener (STRMQMLSR)

    Where allowed to run
    All environments (*ALL)

    Threadsafe
    Yes

The Start MQ Listener (STRMQMLSR) command starts an MQ TCP/IP listener.

This command is valid for TCP/IP transmission protocols only.

We can specify either a listener object or specific listener attributes.


Parameters

Keyword Description Choices Notes
PORT Port number 1-65535, *DFT Optional, Positional 1
MQMNAME Message Queue Manager name Character value, *DFT Optional, Positional 2
IPADDR IP Address Character value, *DFT Optional, Positional 3
BACKLOG Listener backlog 0-999999999, *DFT Optional, Positional 4
LSRNAME Listener name Character value, *NONE Optional, Positional 5


Port number (PORT)

>

The port number to be used by the listener.

The possible values are:

    *DFT
    Port number 1414 is used.

    port-number
    The port number to be used.


Message Queue Manager name (MQMNAME)

>

Specifies the name of the queue manager.

The possible values are:


IP Address (IPADDR)

>

The IP address to be used by the listener.

The possible values are:

    *DFT
    The listener will listen on all IP addresses available to the TCP/IP stack.

    ip-addr
    The IP address to be used.


Listener backlog (BACKLOG)

>

The number of concurrent connection requests the listener supports.

The possible values are:

    *DFT
    255 concurrent connection requests are supported.

    backlog
    The number of concurrent connection requests supported.


Listener name (LSRNAME)

>

The name of the MQ listener object to be started.

The possible values are:

    *NONE
    No listener object is specified.

    listener-name
    Specify the name of the listener object to be started.


Examples

>

None


Error messages

>

Unknown

Parent topic: CL commands reference for IBM i