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 IndexIBM MQ Java / JMSBrowsing a Queue

Post new topicReply to topic
Browsing a Queue View previous topic :: View next topic
Author Message
UpkarSharma
PostPosted: Sun Aug 26, 2001 9:13 pm Post subject: Reply with quote

Apprentice

Joined: 15 Aug 2001
Posts: 27
Location: Mumbai

I have to browse a queue for multiple gets.... Like Username and Password verification.....
Please let me know what GetmessageOption I should use for this specific case.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
pazhanikumart
PostPosted: Mon Aug 27, 2001 2:57 am Post subject: Reply with quote

Apprentice

Joined: 12 Aug 2001
Posts: 32
Location: Chennai,India

You can use the option MQC.MQOO_BROWSE
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
UpkarSharma
PostPosted: Mon Aug 27, 2001 4:48 am Post subject: Reply with quote

Apprentice

Joined: 15 Aug 2001
Posts: 27
Location: Mumbai

Yea thats true ... I can use this option but this is valid only for browsing of one message ....
I want to browse all the message of a queue .. one by one ...
Back to top
View user's profile Send private message Send e-mail MSN Messenger
kolban
PostPosted: Mon Aug 27, 2001 5:21 am Post subject: Reply with quote

Grand Master

Joined: 22 May 2001
Posts: 1072
Location: Fort Worth, TX, USA

I have extracted the following from one of my working applications:


gmo.matchOptions = MQC.MQMO_NONE;
gmo.options =
MQC.MQGMO_FAIL_IF_QUIESCING
| MQC.MQGMO_BROWSE_NEXT
| MQC.MQGMO_ACCEPT_TRUNCATED_MSG;
try {
queue =
qMgr.accessQueue(
qName,
MQC.MQOO_INPUT_AS_Q_DEF | MQC.MQOO_BROWSE | MQC.MQOO_FAIL_IF_QUIESCING);
while(true) {
try {
queue.get(message, gmo);
}
catch (MQException e) {
....
}
}
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexIBM MQ Java / JMSBrowsing 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.