Reputation: 9063
How do i access the remote server of queue manager from my MQ.NET?
i.e. If the queue manager is IBM MQ 7x, i would like to enable auto reconnect, if not no auto reconnect. Like, is there any attribute to find the version # of MQ installed in the remote server?
if remote queue manager of remote server is 7x
var mqQMgr = new MQQueueManager("My queue Manager", MQC.MQCNO_RECONNECT_Q_MGR, "my channel name", "my connection name");
else
var mqQMgr = new MQQueueManager("My queue Manager", "my channel name", "my connection name");
Upvotes: 0
Views: 1059
Reputation: 2114
I don't believe it is possible to determine the version of the queue manager until after you've made the connection. A couple of options would be:
MQC.MQCNO_RECONNECT_Q_MGR
option.mqQMgr.getCommandLevel()
and then if it is greater or equal to 700 disconnect and reconnect to the queue manager with the MQC.MQCNO_RECONNECT_Q_MGR
option.Upvotes: 1