IBM MQ Pub Sub Notes

IBM MQ Pub Sub Notes
1. Persistance is message property while Durability is subscription property.
2. When the Durable subs is made for the 1st time, the Queue stays in the MQ Forever, even after we unsubscribe and when we subs again the next time, we just connect to the existing old Queue

Advertisements

MQ Checks using .Net

Aim:

Perform Checks on MQ using .Net (To Check ChannelStatus, PubSubStatus, QueueManagerPing,
QueueManagerStatus)

Setup:

1.
Visual Studio

2.
Amqmdnet.dll

3.
IBM MQ Client                       

Steps:

1.
PCF commands are used to query MQ
status remotely. (using IBM.WMQ.PCF;)

2.
PCFMessageAgent agent;

3.
MQQueueManager qm = new MQQueueManager(queueManagerName, Channel, ConnName);

4.
request = new PCFMessage(CMQCFC.MQCMD_INQUIRE_CHANNEL_STATUS);

5.
request.AddParameter(…);

6.
request.AddParameter… }); ;

7.
responses = agent.Send(request);

 

The
responses” contain all the info…

 

 

 

–>