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 Java / JMS » current depth

Post new topic  Reply to topic
 current depth « View previous topic :: View next topic » 
Author Message
gavon stone
PostPosted: Wed Jun 01, 2005 1:37 pm    Post subject: current depth Reply with quote

Novice

Joined: 09 Mar 2005
Posts: 16

How do you get the current depth for mq 5.3 using jms

thanks
Back to top
View user's profile Send private message
vennela
PostPosted: Wed Jun 01, 2005 1:57 pm    Post subject: Reply with quote

Jedi Knight

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

Why?

If you are trying to read all the messages on the queue, then you should keep getting in a loop until you get an MQException for 2033

Code:
2033  0x000007f1  MQRC_NO_MSG_AVAILABLE


Hope this helps.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
fjb_saper
PostPosted: Wed Jun 01, 2005 5:37 pm    Post subject: Reply with quote

Grand High Poobah

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

In JMS you won't get a 2033 exception but the receiveImmediate() function will return a null message.

Enjoy
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Thu Jun 02, 2005 3:11 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Or the MDB simply won't get invoked.

If you have a legitimate reason - rather than "trying to find out when to stop getting messages" - for wanting the queue depth, then search here for JMS and PCF.
_________________
I am *not* the model of the modern major general.
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 Java / JMS » current 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.