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 » MQ Java API to retrieve queue depth

Post new topic  Reply to topic
 MQ Java API to retrieve queue depth « View previous topic :: View next topic » 
Author Message
davidg
PostPosted: Sat Jul 22, 2006 3:45 pm    Post subject: MQ Java API to retrieve queue depth Reply with quote

Newbie

Joined: 22 Jul 2006
Posts: 4

I need to get a queues current queue depth via the MQ java api.
Any pointers greatly appreciated.
Back to top
View user's profile Send private message
davidg
PostPosted: Sat Jul 22, 2006 4:35 pm    Post subject: Reply with quote

Newbie

Joined: 22 Jul 2006
Posts: 4

I have found this (after spending countless hours yesterday) as MQQueue.getCurrentDepth(). My apologies.

I now need to get back a list of queues being managed by a given queue manager through the java API.

Any help on this problem greatly appreciated.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sat Jul 22, 2006 5:37 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Look at support pack MS0B

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
davidg
PostPosted: Sat Jul 22, 2006 9:19 pm    Post subject: Reply with quote

Newbie

Joined: 22 Jul 2006
Posts: 4

Many thanks. Does just what I wanted.
Back to top
View user's profile Send private message
wschutz
PostPosted: Sun Jul 23, 2006 5:27 am    Post subject: Re: MQ Java API to retrieve queue depth Reply with quote

Jedi Knight

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

davidg wrote:
I need to get a queues current queue depth via the MQ java api.
I'm surprise FJ didn't say this: don't use the "current depth" as any true indicator for how many "gets" your program should perform. It doesn't accurately reflect how many messages are available for you to get, you should loop until a get fails with a 2033.
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
fjb_saper
PostPosted: Sun Jul 23, 2006 6:32 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

davidg wrote:

I now need to get back a list of queues being managed by a given queue manager through the java API.
I figured he was building some kind of monitoring app.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » MQ Java API to retrieve queue depth
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.