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 » IBM MQ API Support » Getting Total no. of messages in queue based on messageId

Post new topic  Reply to topic
 Getting Total no. of messages in queue based on messageId « View previous topic :: View next topic » 
Author Message
Kumar Nadar
PostPosted: Wed Jan 02, 2002 3:13 am    Post subject: Reply with quote

Newbie

Joined: 16 Oct 2001
Posts: 9

Hi All,

How to obtain the total number of messages present in a Queue based on a particular message Id?
I know that queue.getCurrentDepth() method returns the total no. of messages present in a Queue but I would like to obtain the total number of messages of a particular message Id present in Queue ?

Thanks In Advance,
Kumar

[ This Message was edited by: Kumar Nadar on 2002-01-02 03:14 ]

[ This Message was edited by: Kumar Nadar on 2002-01-02 03:15 ]
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Wed Jan 02, 2002 7:11 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7717

I think the only way you are going to accomplish this is to browse the queue top to bottom and keep a running total in a variable in your program of which of those messages has a message id you want.

_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Getting Total no. of messages in queue based on messageId
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.