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 » how to retrieve all the groups within a queue by using java

Post new topic  Reply to topic
 how to retrieve all the groups within a queue by using java « View previous topic :: View next topic » 
Author Message
brgmo
PostPosted: Wed Dec 17, 2003 11:44 pm    Post subject: how to retrieve all the groups within a queue by using java Reply with quote

Master

Joined: 03 Jun 2002
Posts: 227

Hi All

I have multiple files which are read and put into the queue by a java writer program using grouping techniques.so, for each file there will be a group of messages.
Now,how to retrieve all the groups within a queue by using java.
i tried to look at appliation prog guide but it does not give any picture as how to do it.please help.

regards
brgmo
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Dec 18, 2003 5:16 am    Post subject: Re: how to retrieve all the groups within a queue by using j Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

brgmo wrote:
i tried to look at appliation prog guide but it does not give any picture as how to do it.please help.

So, nothing on this page was any help?

You need to specify a set of options in the MQGetOptions structure that indicate that you wish to receive a particular message from a group. In addition, you should probably indicate that you want to get a complete group.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Linda Rusvelt
PostPosted: Mon Dec 22, 2003 7:15 am    Post subject: Reply with quote

Newbie

Joined: 22 Dec 2003
Posts: 2

You may want to try like this...

Open the queue to browse the messages.
Scan all the messages from top to bottom. Check for MsgFlags property value on each of the message. If it is 24 (i.e., Member of a group and Last Message of a Group), this means that this message is the last message of a group.
Count how many such messages there are on the queue.
This number indicates you the number of groups currently on that queue.

You may want to try WMQTool, a wonderful tool to admininster MQSeries. It is FREE and can be downloaded on www.niratul.com.

Linda
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 » General IBM MQ Support » how to retrieve all the groups within a queue by using java
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.