Use of MQCONNX call options with MQ_CONNECT_TYPE

Use this information to understand the different MQCONNX call options how they are used with MQ_CONNECT_TYPE.

On WebSphere® MQ for IBM® i, WebSphere MQ for Windows, and WebSphere MQ on UNIX and Linux® systems, you can use the environment variable, MQ_CONNECT_TYPE in combination with the type of binding specified in the Options field of the MQCNO structure used on an MQCONNX call.

Table 1. The MQ_CONNECT_TYPE environment variable
MQCONNX call option MQ_CONNECT_TYPE environment variable Result
STANDARD UNDEFINED STANDARD
STANDARD STANDARD STANDARD
STANDARD FASTPATH STANDARD
STANDARD CLIENT CLIENT
STANDARD LOCAL STANDARD

If MQCNO_STANDARD_BINDING is not specified, you can use MQCNO_NONE, which defaults to MQCNO_STANDARD_BINDING.