Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

when to use client connection channel in MQ?

Tags:

ibm-mq

mq

i kind of don't understand when to use the MQ client connection channel. From my understanding, when client trying to connect MQ server, it can be completed by defining the channel object with server connection channel value directly in application code. Therefore, if so, then why do we need to make use of such client connection channel?

Please help explain to me in detail. Thanks very much

like image 484
wing2ofsky Avatar asked Jul 03 '12 03:07

wing2ofsky


People also ask

What is client connection channel?

A client connection channel defines the connection parameters required to connect to a queue manager for example queue manager name, connection name, SSL etc.

What is the difference between MQ client and MQ server?

The difference between an IBM MQ server and an ordinary queue manager is that a server has a dedicated communications link with each client. For more information about creating channels for clients and servers, see Configuring distributed queuing.

How do I identify MQ client connections and stop them?

MQ client applications can connect to a queue manager through a transport type of "client", instead of "bindings". WebSphere MQ runmqsc, MQ Explorer and SupportPac MS6B (chstat script) can be set to identify connections of this type, and stop them.


2 Answers

A Server Connection Channel is used by clients to connect to a queue manager.

You don't really use a client connection channel to connect to queue manager. A client connection channel defines the connection parameters required to connect to a queue manager for example queue manager name, connection name, SSL etc. These channel definitions are stored in channel definition table (CCDT) files. CCDT files are used by client applications through MQCHLLIB and MQCHLTAB environment variables.

This link and another has little more details.

like image 181
Shashi Avatar answered Oct 24 '22 22:10

Shashi


In older versions of WebSphere MQ, a Client Channel Definition Table was used to specify SSL parameters and for failover so the application could select from several equivalent queue managers at connection time. The CCDT file is a compiled artifact and the DEFINE CHL(channel name) CHLTYPE(CLNTCONN) command is what generates the entries in the CCDT file. So you would only use the CLNTCONN channel type if you wanted to create a CCDT file.

Newer versions of WebSphere MQ expose the CCDT fields in the MQCONNX API and the reconnection parameters are in the CONNAME parameter and the client.ini file. Although these have made the CCDT file obsolete for newer applications, the functionality is still required for commercial and legacy applications. IBM has not announced that CCDT functionality is deprecated and it is in V7.5 which was just released so that functionality will remain for the foreseeable future.

like image 32
T.Rob Avatar answered Oct 24 '22 22:10

T.Rob