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 ]
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
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