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 API Support » Java Pgms that browses all messages in a queue

Post new topic  Reply to topic
 Java Pgms that browses all messages in a queue « View previous topic :: View next topic » 
Author Message
pjmarr
PostPosted: Mon Aug 29, 2005 11:49 am    Post subject: Java Pgms that browses all messages in a queue Reply with quote

Newbie

Joined: 29 Aug 2005
Posts: 1

I need a Java pgm that browses all the messages in an MQ Queue. I'm looking for a sample if I can get it. I tried real quick and after the first message kept getting 2033. I need to be able to browse all messages and look in them for a string. Does anyone have a sample pgm that browses all messages in a queue I can use?
Back to top
View user's profile Send private message
wschutz
PostPosted: Mon Aug 29, 2005 11:56 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

Check out the "repository" button at the top of this page, select "java" and then do a find on "browse" ....
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
bower5932
PostPosted: Mon Aug 29, 2005 12:56 pm    Post subject: Reply with quote

Jedi Knight

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

You can also go to:

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

and look for amqsbcg.java which is similar to the shipped sample.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
vennela
PostPosted: Mon Aug 29, 2005 1:30 pm    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Quote:
I tried real quick and after the first message kept getting 2033.

I think that's because you are not clearing the MessagId I guess. But, check the above samples and they are real good to begin with
Back to top
View user's profile Send private message Send e-mail Visit poster's website
RogerLacroix
PostPosted: Mon Aug 29, 2005 7:59 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Hi,

At the following web page, there are 3 working Java samples that will browse a queue:
http://www.capitalware.biz/mq_code_java.html

Regards,
Roger Lacroix
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Java Pgms that browses all messages in 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.