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 » Can use MQ Java API to get the topic depth?

Post new topic  Reply to topic
 Can use MQ Java API to get the topic depth? « View previous topic :: View next topic » 
Author Message
ioat
PostPosted: Mon Jul 18, 2005 12:41 am    Post subject: Can use MQ Java API to get the topic depth? Reply with quote

Acolyte

Joined: 18 Jul 2005
Posts: 53

Anyone knows how to get the topic depth use the MQ Java API?
Back to top
View user's profile Send private message
bower5932
PostPosted: Mon Jul 18, 2005 6:00 am    Post subject: Reply with quote

Jedi Knight

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

There isn't such a thing as topic depth. If you want the number of messages, you could get the queue's depth. However, the messages could be published on different topics. If your subscribers are sharing a queue, then there will also be multiple messages for this as well.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
jefflowrey
PostPosted: Mon Jul 18, 2005 6:03 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

And if you have retained publications, it gets more complicated.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
ioat
PostPosted: Mon Jul 18, 2005 4:51 pm    Post subject: Reply with quote

Acolyte

Joined: 18 Jul 2005
Posts: 53

Thanks to all of you.
I used the shared queue mode, so all topics use the same queue. I can get the queue's depth, but the depth is the sum of all topics' depth. I just want to get each topic's depth. No any way to get this?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Jul 18, 2005 5:42 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

ioat wrote:
No any way to get this?

No.

And ideally, the queue depth would always be empty, as all of your subscribers would consume their publications as soon as they were available.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
ioat
PostPosted: Mon Jul 18, 2005 8:37 pm    Post subject: Reply with quote

Acolyte

Joined: 18 Jul 2005
Posts: 53

Thanks.
I'm not familiar with MQ. On WLS JMS, I can get each topic's depth.
Currently, I want to program an app to monitor the MQ topic. Since in some condition, a durable subscriber maybe disconnect abnormally, and doesn't re-connect again. This condition, the topic's depth will be increased continuously
Back to top
View user's profile Send private message
bower5932
PostPosted: Tue Jul 19, 2005 1:57 am    Post subject: Reply with quote

Jedi Knight

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

It sounds like you just need to monitor the depth of the queue. That is where the messages will end up and if you see it growing, then you know you have some kind of problem.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Can use MQ Java API to get the topic 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.