Determine the number of subscribers to a single topic in JMS

I am creating a small statistics application for the Java Message Service. I have a container with several topics and many subscribers (consumers) for each topic.

JMS Provider: SonicMQ

I got the program in a state in which I:

  • Create session
  • Create MessageConsumer for Theme
  • Listen to messages
  • Collect statistics

And it works fine.

But the key part of the program is missing: how to determine the number of subscribers to a particular topic?

I plowed the JMS documentation, but to no avail. I was hoping that someone had fought this windmill before ... Any ideas or confirmation that this could not be welcomed.

+3
source share
1 answer

JMS API. , API JMS, , .

0

Source: https://habr.com/ru/post/1711979/


All Articles