ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Checking for a specified message in the Queues

Post new topic  Reply to topic
 Checking for a specified message in the Queues « View previous topic :: View next topic » 
Author Message
VijayGoparaju`
PostPosted: Wed Aug 27, 2008 8:19 pm    Post subject: Checking for a specified message in the Queues Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Wed Aug 27, 2008 9:25 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
VijayGoparaju`
PostPosted: Wed Aug 27, 2008 10:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
David.Partridge
PostPosted: Wed Aug 27, 2008 11:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
bower5932
PostPosted: Thu Aug 28, 2008 4:01 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Checking for a specified message in the Queues
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.