Yuriy
Yuriy

Reputation: 1452

Configuring queue manager so that IBM MQ classes for JMS applications can connect in client mode

I want to send a message to a queue in WebSphere MQ. For this I must create a server-connection channel definition as it is written in

Configuring your queue manager so that IBM MQ classes for JMS applications

But I don't know where I should input this command for creating channel:

CRTMQMCHL CHLNAME(JAVA.CHANNEL) CHLTYPE(*SVRCN)
TRPTYPE(*TCP)
MQMNAME( QMGRNAME )

Help me please in this question. And tell me please about the difference between client mode and binding mode.

Upvotes: 2

Views: 1699

Answers (1)

Morag Hughson
Morag Hughson

Reputation: 7609

The CRTMQMCHL is a CL command. This is specific to the IBM i platform (aka iSeries, aka OS/400). You can issue MQM CL commands from the Message Queue Manager Commands menu. To display this menu, type GO CMDMQM on the command line and press the Enter key.

If you wish to do this on a platform other than the IBM i platform (or from within the RUNMQSC CL command on IBM i) you can issue this command from inside a runmqsc command prompt.

To get a runmqsc command prompt, on an O/S command prompt type:-

runmqsc QMGRNAME

replacing QMGRNAME with the name of your queue manager. Then inside the runmqsc prompt that you now have, type:-

DEFINE CHANNEL(JAVA.CHANNEL) CHLTYPE(SVRCONN) TRPTYPE(TCP)

Client mode versus binding mode Client mode means you are connecting to the queue manager over the network, using a TCP socket.

Bindings mode means your application is running on the same machine as the queue manager, and the connection is made using a memory based inter-process communication (IPC) method, the JNI in th case of a Java application. You cannot use bindings mode if your application is running on a different machine than your queue manager.

Further Reading

Upvotes: 2

Related Questions