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 Java / JMS » Group of Messages from a queue

Post new topic  Reply to topic
 Group of Messages from a queue « View previous topic :: View next topic » 
Author Message
kartkris
PostPosted: Sun May 05, 2002 3:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
kolban
PostPosted: Sun May 05, 2002 7:17 pm    Post subject: Reply with quote

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
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 Java / JMS » Group of Messages from a queue
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.