Defining which connection to use

The connection is determined by the setting of variables in the MQEnvironment class.

Either set the value of MQEnvironment.Hostname and MQEnvironment.Channel as follows:

or set the environment variable NMQ_MQ_LIB to explicitly choose connection type as shown in the following table

NMQ_MQ_LIB value Connection type
mqm.dll Server bindings connection
mqic32.dll Client bindings connection
mqic32xa.dll XA Client bindings connection