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 » ImqQueue's currentDepth() returns false sometimes

Post new topic  Reply to topic
 ImqQueue's currentDepth() returns false sometimes « View previous topic :: View next topic » 
Author Message
danhoffman
PostPosted: Wed Nov 14, 2007 8:37 am    Post subject: ImqQueue's currentDepth() returns false sometimes Reply with quote

Apprentice

Joined: 03 Nov 2005
Posts: 25

Hi,

I have an app that gets the current depth of all the queues, alerts, etc. I'm finding that there are certain queues that sometimes return false on this function call and sometimes return true. I'm wondering it happens when an application connects and gets the queue in exclusive mode, but I'm not sure. How do I find out since I only get a true/false rather than an MQ code?
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Nov 14, 2007 8:52 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Why is your app looking for current depth? What's the requirement? Why does it care?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
danhoffman
PostPosted: Wed Nov 14, 2007 8:53 am    Post subject: currentDepth Reply with quote

Apprentice

Joined: 03 Nov 2005
Posts: 25

It dumps the queue depth of multiple queues from multiple queue managers to a csv file for analysis over time.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Nov 14, 2007 8:59 am    Post subject: Re: currentDepth Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

danhoffman wrote:
It dumps the queue depth of multiple queues from multiple queue managers to a csv file for analysis over time.


a) use depth events

b) buy a monitoring package that does this

This wheel has already been invented and is nice and circular.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
danhoffman
PostPosted: Wed Nov 14, 2007 9:01 am    Post subject: currentDepth Reply with quote

Apprentice

Joined: 03 Nov 2005
Posts: 25

While your suggestions may be valid, there is a specific function available in the API that provides the information I seek. I'm having trouble with using this function in the API. This forum is to discuss that API- I was hoping to receive more useful information than what you've provided. If I am to buy a package for every task, then why is a public api available?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Nov 14, 2007 9:04 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

It may be better to use PCFs rather than INQUIRE.

Are you sure the queues that are returning false are valid to have queue depth?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
danhoffman
PostPosted: Wed Nov 14, 2007 9:06 am    Post subject: Reply with quote

Apprentice

Joined: 03 Nov 2005
Posts: 25

jefflowrey wrote:
It may be better to use PCFs rather than INQUIRE.

Are you sure the queues that are returning false are valid to have queue depth?


jeff,
I ordinarily would be using PCF (and do against queue managers on Unix, etc.), but I'm connecting to a mainframe queue manager and I believe that PCF is not supported. (Please correct me if I'm wrong). The queues in question sometimes return false, and sometimes return true with a valid depth. Therefore the queues themselves are valid for queue depth, but there may be intermittent conditions that prevent me from getting the depth. (And that's what I'm trying to get to the bottom of).
Dan
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Nov 14, 2007 9:07 am    Post subject: Re: currentDepth Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

danhoffman wrote:
If I am to buy a package for every task, then why is a public api available?


a) The API is also used by the monitoring software
b) I never said a package for every task
c) In my innocence I thought the opinion that the total cost of ownership presented by a hand-rolled monitoring solution would be larger than that of a commercial solution, especially when not leveraging the facilities provided by the software, might be useful / interesting / valuable. I apologise for any offence caused.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Nov 14, 2007 9:09 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

To respond directly to your question, if you're using administrative functions you're better off with PCF commands.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
danhoffman
PostPosted: Wed Nov 14, 2007 9:10 am    Post subject: Reply with quote

Apprentice

Joined: 03 Nov 2005
Posts: 25

Vitor wrote:
To respond directly to your question, if you're using administrative functions you're better off with PCF commands.


I'm told that it doesn't work against a mainframe queue manager. Is that correct?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Nov 14, 2007 9:12 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Mainframe qmgrs at v6 support PCF.

Mainframe qmgrs pre-v6 support plain MQSC on the command server input queue.

It may be worth comparing the results of the same INQUIRE from the plain C API, with the C++ API.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
bower5932
PostPosted: Wed Nov 14, 2007 9:12 am    Post subject: Reply with quote

Jedi Knight

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

danhoffman wrote:
Vitor wrote:
To respond directly to your question, if you're using administrative functions you're better off with PCF commands.


I'm told that it doesn't work against a mainframe queue manager. Is that correct?


I thought they worked in WMQ v6.0 on the mainframe.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Vitor
PostPosted: Wed Nov 14, 2007 9:14 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

danhoffman wrote:
Vitor wrote:
To respond directly to your question, if you're using administrative functions you're better off with PCF commands.


I'm told that it doesn't work against a mainframe queue manager. Is that correct?


Not on v6, and AFAIK you can submit commands against v5.n queue managers.

I commend the "Monitoring MQ" manual to your attention, along with the platform specific System Administration ones.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » ImqQueue's currentDepth() returns false sometimes
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.