-
1. Re: ProducerCount?
gaohoward Jun 29, 2010 11:33 PM (in response to greenwayb)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.
Howard
-
2. Re: ProducerCount?
greenwayb Jun 30, 2010 12:23 AM (in response to gaohoward)Use Case
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.0From 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.
-
3. Re: ProducerCount?
clebert.suconic Jun 30, 2010 12:38 AM (in response to greenwayb)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? :-)
-
4. Re: ProducerCount?
greenwayb Jun 30, 2010 4:42 AM (in response to greenwayb)Yes I will be happy to share the tool and scripts. What is the best way to provide it?
-
5. Re: ProducerCount?
clebert.suconic Jun 30, 2010 12:24 PM (in response to greenwayb)You should:
- 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.
-
6. Re: ProducerCount?
unsavory Jun 30, 2010 2:44 PM (in response to clebert.suconic)Yes please! I would love to use this tool.
-
7. Re: ProducerCount?
greenwayb Jul 2, 2010 4:55 AM (in response to unsavory)Will certainly look to take the steps to contribute. Sorry got side tracked with other items this week.