Hello, Can anyone help me, how can i browse the all messages in the queue? i have found several examples to get or put the messages, but about the browsing i haven't. The folloing example is browse the first messages, but i would like to see the all messages... MQQueueManager mqQMgr; MQQueue mqQueue; MQMessage mqMsg = new MQMessage(); MQGetMessageOptions mqGetMsgOpts = new MQGetMessageOptions(); mqQMgr = new MQQueueManager(qmName); mqQueue = mqQMgr.AccessQueue(qName, MQC.MQOO_BROWSE | MQC.MQGMO_LOGICAL_ORDER // open queue for browse + MQC.MQOO_FAIL_IF_QUIESCING); mqGetMsgOpts.Options = MQC.MQGMO_WAIT | MQC.MQGMO_BROWSE_FIRST; mqQueue.Get(mqMsg, mqGetMsgOpts); MessageBox.Show(mqMsg.ReadString(mqMsg.TotalMessageLength));
Thanx, Gee
H
How Gee
@How Gee
Posts
-
C# and IBM WebSphere MQ message borwsing