When using any of the language bindings based on MQI it's possible to define a connection string with multiple host / ports and the MQI Client layer will attempt to connect to each in turn, returning the first connection made.
eg. in Python this would look something like, please excuse the hard-coded values:
import pymqi
queue_manager = 'QM1'
channel = 'DEV.APP.SVRCONN'
conn_alpha = '%s(%s)' % ('192.168.0.61', '1414')
conn_beta = '%s(%s)' % ('192.168.0.71', '1414')
conn_info = "%s,%s" % (conn_alpha, conn_beta)
qmgr = pymqi.connect(queue_manager, channel, conn_info)
Is there an equivalent mechanism in C# XMS. I have
factoryFactory = XMSFactoryFactory.GetInstance(XMSC.CT_WMQ);
// Create WMQ Connection Factory.
cf = factoryFactory.CreateConnectionFactory();
// Set the properties
cf.SetStringProperty(XMSC.WMQ_HOST_NAME, "192.168.0.61");
cf.SetIntProperty(XMSC.WMQ_PORT, 1414);
...
Is there a way to add in the second host / port as properties into the connection attempt?