Configuring your queue manager so that IBM MQ classes for JMS applications can connect in client mode
To configure your queue manager so that IBM® MQ classes for JMS applications can connect in client mode, you must create a server connection channel definition and start a listener.
Creating a server connection channel definition
DEFINE CHANNEL(JAVA.CHANNEL) CHLTYPE(SVRCONN) TRPTYPE(TCP)
CRTMQMCHL CHLNAME(JAVA.CHANNEL) CHLTYPE(*SVRCN)
TRPTYPE(*TCP)
MQMNAME(QMGRNAME)
In this command, QMGRNAME is the name of your queue manager. On Linux® and Windows, you can also create a server connection channel definition using MQ Explorer.
On z/OS® you can use the operations and control panels to create a server connection channel definition .
The name of the channel (JAVA.CHANNEL in the previous examples) must be the same as the channel name specified by the CHANNEL property of the connection factory that your application uses to connect to the queue manager. The default value of the CHANNEL property is SYSTEM.DEF.SVRCONN.
Starting a listener
You must start a listener for your queue manager if one is not already started.
DEFINE LISTENER(LISTENER.TCP) TRPTYPE(TCP) PORT(1414)
START LISTENER(LISTENER.TCP)
START LISTENER TRPTYPE(TCP) PORT(1414)
STRMQMLSR PORT(1414) MQMNAME(QMGRNAME)
In
this command, QMGRNAME is the name of your queue manager.
runmqlsr -t tcp -p 1414 -m QMgrName
In
this command, QMgrName is the name of your queue manager. Linux and Windows, you can also start a listener using MQ Explorer.
On z/OS, you can also use the operations and control panels to start a listener.
The number of the port on which the listener is listening must be the same as the port number specified by the PORT property of the connection factory that your application uses to connect to the queue manager. The default value of the PORT property is 1414.