Use MQCONNX

We can use the MQCONNX call to specify a channel definition (MQCD) structure in the MQCNO structure.

This allows the calling client application to specify the definition of the client-connection channel at run time. For more information, see Use the MQCNO structure on an MQCONNX call. When we use MQCONNX, the call issued at the server depends on the server level and listener configuration.

When we use MQCONNX from a client, the following options are ignored:

  • MQCNO_STANDARD_BINDING
  • MQCNO_FASTPATH_BINDING

The MQCD structure we can use depends on the MQCD version number you are using. For information on MQCD versions (MQCD_VERSION), see MQCD Version. We can use the MQCD structure, for example, to pass channel-exit programs to the server. If you are using MQCD Version 3 or later, we can use the structure to pass an array of exits to the server. We can use this function to perform more than one operation on the same message, such as encryption and compression, by adding an exit for each operation, rather than modifying an existing exit. If we do not specify an array in the MQCD structure, the single exit fields will be checked. For more information on channel-exit programs, see Channel-exit programs for messaging channels.