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 » WebSphere Interchange Server + Adapters » MQ openOptions

Post new topic  Reply to topic
 MQ openOptions « View previous topic :: View next topic » 
Author Message
valhalen
PostPosted: Mon Jun 05, 2006 9:16 am    Post subject: MQ openOptions Reply with quote

Novice

Joined: 24 Feb 2006
Posts: 18

Hi,

I am using a java program (prog1) to retrieve the queue depth of a set of MQ queues - non-destructively/read-only (while the messages are being consumed by another program(prog2) ). I am a newbie to MQseries, and wanted to check if "openOptions = MQC.MQOO_INQUIRE" was the right option to be used by prog1, which will not have any effect on the consumption of the messages by prog2.

Thanks a lot.
_________________
Val
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
vennela
PostPosted: Mon Jun 05, 2006 9:36 am    Post subject: Reply with quote

Jedi Knight

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

Why do you want to look at the queue depth to browse messages?
If you want to browse all messages, then browse every message in a while loop until you get a 2033.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
wschutz
PostPosted: Mon Jun 05, 2006 9:39 am    Post subject: Reply with quote

Jedi Knight

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

Yes, "openOptions = MQC.MQOO_INQUIRE" will do what you want. But as vennela says, be careful. Also, the CURDEPTH might have a different value than you expect (since its affected by un-committed work and expired messages).
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
valhalen
PostPosted: Mon Jun 05, 2006 11:01 am    Post subject: Reply with quote

Novice

Joined: 24 Feb 2006
Posts: 18

Vennela and wschutz,

thanks for the reply.

prog1 does not need to know what the content of those messages are - and wouldn't browsing through the messages take more time than retrieving the message count ?

"un-committed work and expired messages" - Well, prog1 will have to live with that risk.

Thanks again.
_________________
Val
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Interchange Server + Adapters » MQ openOptions
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.