You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using(varqmgr=MQQueueManager.Connect(queueManagerName,MQC.MQCO_NONE,channel,connectionInfo))using(varq=qmgr.AccessQueue("QL.QUEUE1",MQC.MQOO_INPUT_AS_Q_DEF+MQC.MQOO_FAIL_IF_QUIESCING)){varincoming=newMQMessage();MQGetMessageOptionsgmo=newMQGetMessageOptions();gmo.WaitInterval=(int)TimeSpan.FromSeconds(30).TotalMilliseconds;// or MQC.MQWI_UNLIMITED;gmo.Options|=MQC.MQGMO_WAIT;gmo.Options|=MQC.MQGMO_SYNCPOINT;q.Get(incoming,gmo);Console.WriteLine(incoming.ReadString(incoming.DataLength));}
As a prerequisite, you first need to install an IBM MQ client in the system where Mmqi.Net is about to be installed; it is a free library offered by IBM on top of which higher-level ones, such as Mmqi.Net, can connect to queue managers. IBM MQ clients can be downloaded from IBM's website.
You can dowload the client from here ... IBM MQ V8 Clients
About
Minimalist .Net Core interface for IBM MQ (WebSphere MQ, MQSeries)