|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Checking for a specified message in the Queues |
« View previous topic :: View next topic » |
Author |
Message
|
VijayGoparaju` |
Posted: Wed Aug 27, 2008 8:19 pm Post subject: Checking for a specified message in the Queues |
|
|
Acolyte
Joined: 26 Aug 2008 Posts: 72
|
Hello All,
I am searching for a specified message in the Queues in Mq-Series.Its just checking the First message it is not going to the next messages.I am usign .NET for coding.
I have accessed the queue with this:
queue = queueManager.AccessQueue( txtSearchQueue.Text, MQC.MQOO_FAIL_IF_QUIESCING | MQC.MQOO_BROWSE );
Searched the First message with this:
queueGetMessageOptions.Options = MQC.MQGMO_BROWSE_FIRST;
Searched the Next messages with this:
queueGetMessageOptions.Options = MQC.MQGMO_BROWSE_NEXT;
Can any one help me where I did the wrong thing .Please reply me fast.
Thanks In Advance,
Vijay.G |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Aug 27, 2008 9:25 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Did you clear the msgid and correlid between the 2 get calls?
Clearing here means set to MQC.MQMI_NONE or MQC.MQCI_NONE  _________________ MQ & Broker admin |
|
Back to top |
|
 |
VijayGoparaju` |
Posted: Wed Aug 27, 2008 10:40 pm Post subject: |
|
|
Acolyte
Joined: 26 Aug 2008 Posts: 72
|
I have tried that but i am getting only the First Messages.I have cleared but getting the first message number of times...
queueMessage.MessageId = MQC.MQMI_NONE;
queueMessage.CorrelationId =MQC.MQCI_NONE;
but I am not getting... |
|
Back to top |
|
 |
David.Partridge |
Posted: Wed Aug 27, 2008 11:10 pm Post subject: |
|
|
 Master
Joined: 28 Jun 2001 Posts: 249
|
Please don't use this forum for your problems, use the general forum or a more specific one related to your problem. That's not what this forum is for. _________________ Cheers,
David C. Partridge |
|
Back to top |
|
 |
bower5932 |
Posted: Thu Aug 28, 2008 4:01 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
You might try looking at the amqsbcg0.c sample. I know it is a different language, but the program shows the options needed to browse all of the messages on a queue. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|