|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQ openOptions |
« View previous topic :: View next topic » |
Author |
Message
|
valhalen |
Posted: Mon Jun 05, 2006 9:16 am Post subject: MQ openOptions |
|
|
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 |
|
 |
vennela |
Posted: Mon Jun 05, 2006 9:36 am Post subject: |
|
|
 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 |
|
 |
wschutz |
Posted: Mon Jun 05, 2006 9:39 am Post subject: |
|
|
 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 |
|
 |
valhalen |
Posted: Mon Jun 05, 2006 11:01 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|