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 » how do i iterate over the queue ?

Post new topic  Reply to topic
 how do i iterate over the queue ? « View previous topic :: View next topic » 
Author Message
bigmq
PostPosted: Mon Dec 06, 2004 11:29 am    Post subject: how do i iterate over the queue ? Reply with quote

Novice

Joined: 14 Sep 2004
Posts: 19

I want to get all message out of the queue and write to a file, i am using browsing option right now: openOptions = MQC.MQOO_BROWSE

so that i only get the first message out, how do i set a loop in my java program to recognize if it is the end of the queue.

when can i find the list of all the MQ options?

Thanks
Back to top
View user's profile Send private message
bower5932
PostPosted: Mon Dec 06, 2004 12:54 pm    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

You can find a list of all of the WMQ options by looking at the Application Programming Reference/Guide. The Using Java manual also has a lot of information in it.

As far as your actual program, you'll find quite a bit of sample code at:

http://www.developer.ibm.com/tech/sampmq.html

My guess is that you don't want to browse the queue at all, but simply start getting the messages. There is a getGroup/putGroup pair of programs that should help you out. The messages are put/gotten based on a common group id.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » how do i iterate over the 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.