Configure a queue manager to accept TCP/IP client connections

 


TCP/IP client

Note, if you do not want to make your own, you can use the default channel.

  1. Start a queue manager...
    strmqm [QMNAME]
    

  2. Enter the MQ command interpreter...
    runmqsc [QMNAME]
    

  3. Define a sample channel called JAVA.CHANNEL...
    DEF CHL('JAVA.CHANNEL')  +
        CHLTYPE(SVRCONN)  +
        TRPTYPE(TCP)  +
        MCAUSER(' ')  +
        DESCR('Sample channel for WebSphere MQ classes for Java')
    

  4. Start a listener program...
    runmqlsr -t tcp [-m QMNAME] -p 1414
    

  5. Ensure your channel initiator is started. If not, start it...

    START CHINIT

  6. Start the listener...

    START LISTENER TRPTYPE(TCP) PORT(1414)

 

WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.