|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Group of Messages from a queue |
« View previous topic :: View next topic » |
Author |
Message
|
kartkris |
Posted: Sun May 05, 2002 3:55 pm Post subject: |
|
|
Newbie
Joined: 20 Apr 2002 Posts: 3
|
Hi,
I am writing a java bean program to get group of messages from the queue.Nor i am using group id or correlation id.I am just writing a for loop in bean program to continously fetch the group of messages.
For example.,if there are 10 messages & i want to get 3 messages.,it's been possible.I am successful at that.But say., if i want to get the messages starting from 10th index.,message no.10,11 & 12.It's not being possible.,it's fetching first 3 or from 4th row.
I don't know how to get group of messages from the particular index No. which we pass.How is this possible?.Please clarify....
|
|
Back to top |
|
 |
kolban |
Posted: Sun May 05, 2002 7:17 pm Post subject: |
|
|
 Grand Master
Joined: 22 May 2001 Posts: 1072 Location: Fort Worth, TX, USA
|
Look into the queue browsing technology. You can browse from the first message until you get to the index you want and then do destructive gets to obtain the required messages.
MQSeries starts the browse from the first message and has no capability to "go to" an arbitrary message so performance will degrade as a function of the depth of the index.
For example, if you have a 1000 messages on the queue, it will be quick to get 10,11 & 12 but slower (relatively) to get 990, 991 and 992.
|
|
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
|
|
|
|