URL access to the CCDT
You can host a client channel definition table (CCDT) in a central location that can be accessed through a URL, removing the need to individually update the CCDT for each deployed client.
- By programming using MQCNO
- By using environment variablesAttention: You can use the environment variable option to provide the URL only for native programs connecting as clients, that is C, COBOL, or C++ applications. The environment variables have no effect for Java, JMS or managed .NET applications.
IBM® MQ supports retrieving a CCDT from a file, ftp, or http URL.
- By using the mqclient.ini file Channels stanza.
The environment variable MQCCDTURL allows you to provide a file, ftp, or http URL as a single value from which a client channel definition table can be obtained.
You can also use the directory path specified by the MQCHLLIB environment variable (or the path specified by the ChannelDefinitionDirectory attribute in the Channels stanza of the client configuration file) to locate a CCDT file, either through file, ftp, or http URL, in addition to the existing local file system directory, that is, /var/mqm). Note that an MQCHLLIB value is a directory stem and works in combination with MQCHLTAB to derive the fully qualified URL.
- Authenticated connections
-
export MQCHLLIB=ftp://myuser:password@myhost.sample.com/var/mqm/qmgrs/QMGR/@ipcc export MQCHLLIB=http://myuser:password@myhost.sample.com/var/mqm/qmgrs/QMGR/@ipcc
- Unauthenticated connections
-
export MQCHLLIB=ftp://myhost.sample.com/var/mqm/qmgrs/QMGR/@ipcc export MQCHLLIB=http://myhost.sample.com/var/mqm/qmgrs/QMGR/@ipcc export MQCHLLIB=file:///var/mqm/qmgrs/QMGR/@ipcc
- MQCD provided by ClientConnOffset and ClientConnPtr in MQCNO.
- URL provided by CCDTUrlOffset and CCDTUrlPtr in MQCNO.
- MQSERVER environment variable.
- If an mqclient.ini file is defined and the Channels stanza contains a ServerConnectionParms attribute, then the channel that it defines is used. For more information, see IBM MQ MQI client configuration file, mqclient.ini and Channels stanza of the client configuration file.
- MQCCDTURL environment variable.
- MQCHLLIB and MQCHLTAB environment variable.
- ChannelDefinitionDirectory and ChannelDefinitionFile in the Channels stanza of the client configuration file.
Attempting to open a CCDT file for write access, for example when using the DEFINE CHANNEL MQSC command from a client, returns an error message indicating that the file could not be opened for write access.
It is, however, possible to read channel and authentication information definitions using runmqsc.