Configuring your queue manager to accept client connections

Use the following procedures to configure your queue manager to accept incoming connection requests from the clients.

TCP/IP client

  1. Define a server connection channel using the following procedures:
    For i5/OS:
    1. Start your queue manager by using the STRMQM command.
    2. Define a sample channel called JAVA.CHANNEL by issuing the following command:
      CRTMQMCHL CHLNAME(JAVA.CHANNEL) CHLTYPE(*SVRCN) MQMNAME(QMGRNAME)
                MCAUSERID(SOMEUSERID) 
                TEXT('Sample channel for WebSphere MQ classes for Java')
      where QMGRNAME is the name of your queue manager, and SOMEUSERID is an i5/OS user ID with appropriate authority to the WebSphere(R) MQ resources.
    For z/OS:
    Note:
    You must have the Client attachment feature installed on your target queue manager in order to connect using TCP/IP.
    1. Start your queue manager by using the START QMGR command.
    2. Define a sample channel called JAVA.CHANNEL by issuing the following command:
      DEF CHL('JAVA.CHANNEL') CHLTYPE(SVRCONN) TRPTYPE(TCP) 
      DESCR('Sample channel for WebSphere MQ classes for Java')
    For the other platforms:
    1. Start your queue manager by using the strmqm command.
    2. Type the following command to start the runmqsc program:
      runmqsc [QMNAME]
    3. Define a sample channel called JAVA.CHANNEL by issuing the following command:
      DEF CHL('JAVA.CHANNEL') CHLTYPE(SVRCONN) TRPTYPE(TCP) MCAUSER(' ') +
      DESCR('Sample channel for WebSphere MQ classes for Java')
  2. Start a listener program with the following commands:
    For UNIX and Windows systems:
    Issue the command:
    runmqlsr -t tcp [-m QMNAME] -p 1414
    Note:
    If you use the default queue manager, you can omit the -m option.
    For i5/OS:
    Issue the command:
    STRMQMLSR MQMNAME(QMGRNAME)
    where QMGRNAME is the name of your queue manager.
    For z/OS:
    1. Ensure your channel initiator is started. If not, start it by issuing the START CHINIT command.
    2. Start the listener by issuing the command START LISTENER TRPTYPE(TCP) PORT(1414)