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 » Browsing messages with MA7P?

Post new topic  Reply to topic
 Browsing messages with MA7P? « View previous topic :: View next topic » 
Author Message
dialog-it_dme
PostPosted: Mon Jun 30, 2003 12:06 am    Post subject: Browsing messages with MA7P? Reply with quote

Newbie

Joined: 27 Nov 2002
Posts: 8
Location: Germany

Hi!

I´m still playing around with IBMs supportpack MA7P (.NET classes) and just wondering how to browse messages...
I can´t find anything like an MQBrowse call. Anyone got it done?
How do I browse messages if there´s no such method implemented? (VB.NET or C# code would be quite helpful...)

Thanks in advance,
_________________
Danyel Meyer

-------------------------------------
dialog-it GmbH
www.dialog-it.de
Back to top
View user's profile Send private message Visit poster's website
RogerLacroix
PostPosted: Mon Jun 30, 2003 10:26 pm    Post subject: Reply with quote

Jedi Knight

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

There is no MQBrowse class / method. You need to set the browse option on both the open and on the get.

i.e.
Code:
int openInputOptions  = MQC.MQOO_BROWSE + MQC.MQOO_FAIL_IF_QUIESCING;
MQQueue queue = qMgr.AccessQueue(qName, openInputOptions);
//
MQGetMessageOptions gmo = new MQGetMessageOptions();
gmo.options = MQC.MQGMO_BROWSE_FIRST + MQC.MQGMO_FAIL_IF_QUIESCING;
//
// loop
//   - get message
// at the bottom of the loop set option for "next" message
gmo.options = MQC.MQGMO_BROWSE_NEXT + MQC.MQGMO_FAIL_IF_QUIESCING;

later
Roger...
_________________
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 » Browsing messages with MA7P?
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.