activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jhunsinger <>
Subject Re: Advisory messages
Date Wed, 25 Jul 2007 22:40:50 GMT

Updated Information:  

I copied some code from the ProducerEventSource which assumes that if the
data structure is an instanceof ProducerInfo, then the advisory msg is an
add (start) producer.  If the data structure is an instanceof RemoveInfo,
then it is a remove (stop) producer.  I also noticed that the property
producerCount is only provided for RemoveInfo and not ProducerInfo.   

Seems like the producerCount property should be available in the advisory
message when both adding and removing a producer to/from a destination.  I
also didn't see any mbean information for destination producerCount.



jhunsinger wrote:
> Hello,
> I am trying to start/stop java processes upon the receipt of a message on
> a queue.   I created a simple Advisory example that subscribes to
> ActiveMQ.Advisory.Producer.Queue.>.  However, I do not see how to
> determine if this a producer start or stop.  I would also like to
> determine the number of producers and consumers on a queue.  Is there an
> easy way to determine the above?
> Thanks,
> Jim

View this message in context:
Sent from the ActiveMQ - Dev mailing list archive at

View raw message