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 » Retreive Messages in a Group

Post new topic  Reply to topic
 Retreive Messages in a Group « View previous topic :: View next topic » 
Author Message
salmanrs
PostPosted: Thu Jun 27, 2002 12:50 pm    Post subject: Retreive Messages in a Group Reply with quote

Newbie

Joined: 13 Jun 2002
Posts: 6
Location: Michigan

Hi All,
I need to retreive messages based on a groupid in a loop. My question is whether there is any way to know if the current msg retreived is the last one. Could anybody throw in some pointers with respect to java.

Thanks in advance
Salman
Back to top
View user's profile Send private message
mgrabinski
PostPosted: Sat Jun 29, 2002 4:32 am    Post subject: Reply with quote

Master

Joined: 16 Oct 2001
Posts: 246
Location: Katowice, Poland

Specify two options with MQGET:
MQGMO_LOGICAL_ORDER
and
MQMO_MATCH_GROUP_ID (along with proper group id setting in the MQMD)

and check GroupStatus filed of MQGMO structure to see if it = MQGS_MSG_IN_GROUP

HTH
_________________
Marcin Grabinski <><
Back to top
View user's profile Send private message
bduncan
PostPosted: Sat Jun 29, 2002 7:28 am    Post subject: Reply with quote

Padawan

Joined: 11 Apr 2001
Posts: 1554
Location: Silicon Valley

Take a look at this program in the software repository:
http://www.mqseries.net/pafiledb203/pafiledb.php?action=viewfile&fid=22&id=2

This illustrates how to get a group of messages from the queue. You'll notice that there is a parameter LAST_MSG_IN_GROUP that it checks for to see the group is exhausted. There's also a corresponding putgroup.c program in the repository. They're written in C, but you can easily see the logic, and replicate it in Java...
_________________
Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Retreive Messages in a Group
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.