|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
how to retrieve all the groups within a queue by using java |
« View previous topic :: View next topic » |
Author |
Message
|
brgmo |
Posted: Wed Dec 17, 2003 11:44 pm Post subject: how to retrieve all the groups within a queue by using java |
|
|
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 |
|
 |
jefflowrey |
Posted: Thu Dec 18, 2003 5:16 am Post subject: Re: how to retrieve all the groups within a queue by using j |
|
|
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 |
|
 |
Linda Rusvelt |
Posted: Mon Dec 22, 2003 7:15 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
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
|
|
|
|