Author |
Message
|
ioat |
Posted: Mon Jul 18, 2005 12:41 am Post subject: Can use MQ Java API to get the topic depth? |
|
|
Acolyte
Joined: 18 Jul 2005 Posts: 53
|
Anyone knows how to get the topic depth use the MQ Java API? |
|
Back to top |
|
 |
bower5932 |
Posted: Mon Jul 18, 2005 6:00 am Post subject: |
|
|
 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 |
|
 |
jefflowrey |
Posted: Mon Jul 18, 2005 6:03 am Post subject: |
|
|
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 |
|
 |
ioat |
Posted: Mon Jul 18, 2005 4:51 pm Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Mon Jul 18, 2005 5:42 pm Post subject: |
|
|
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 |
|
 |
ioat |
Posted: Mon Jul 18, 2005 8:37 pm Post subject: |
|
|
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 |
|
 |
bower5932 |
Posted: Tue Jul 19, 2005 1:57 am Post subject: |
|
|
 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 |
|
 |
|