I don't think it is there for you.
I'm not sure your use case, but one producer can sent messages to different destinations. It hardly belongs to any queue.
So browsing producer count based on queue is not a good idea.
With openMQ can do this:
/opt/sun/mq/bin/imqcmd -u admin -passfile imqbroker.password -b msgserver:7777 list dst -tmp, this provides output such as:
Name Type State Producers Consumers Msgs
A Queue RUNNING 1 2 0 0 0.0
B Queue RUNNING 0 0 0 0 0.0
C Queue RUNNING 0 1 0 0 0.0
From this I know that I have a component that listens for queue C and is started, however the component that publishes to the queue C is not started.
I have written a command line tool to provide similar output from hornetq but cannot get the producer count since it is not exposed.
A producer doesn't have any server's state with HornetQ, hence you won't find this exposed.. and there won't be a way to do it.
Messages are sent towards the ServerSession through our connector's mechanism (Netty | InVM).
BTW: do you want to share your tool? :-)
Yes I will be happy to share the tool and scripts. What is the best way to provide it?
- Sign the contributor's aggreement on jboss.org
- Create a JIRA and provide a patch with the code and some tests.
The patch could be easily produced with svn diff > some-file.patch
You should also open a dev-thread discussing design.. etc
We can give you commit rights if you want to maintain the tool after the commit was accepted.
Yes please! I would love to use this tool.
Will certainly look to take the steps to contribute. Sorry got side tracked with other items this week.