I'm building a small statistics application for Java Message Service. I have a container with several topic and loads of subscribers (consumers) to each topic.
JMS provider: SonicMQ
I've gotten the program to the state where I:
- Create a session
- Create a MessageConsumer to the topic
- Listen for messages
- Collect the statistics
And it's working ok.
But a key piece of the program is missing: How to determine the number of subscribers a certain topic has?
I've plowed through the JMS documentation, but to no avail. I was hoping maybe someone has battled this windmill before... Any ideas or a confirmation that it cannot be done welcome.