On Thu, 2011-02-10 at 14:14 +0000, Suneel Papineni wrote: > Hi, > > > > I am using ActiveMQ 5.4.2 and NMS 1.5.0. As a producer I want to know > what are all consumers connected to Message bus and what messages they > are sending when they got connected or disconnected. > > I believe this can be achieved by using Advisory Messages. Using the > link http://activemq.apache.org/cms/handling-advisory-messages.html, we > can find number of consumers with "consumerCount" property. > > > > Is there any way to read all related parameters of these messages, so > that I can know who has sent the message at what time and reason for > sending like these feilds. > >
You can consume advisory Messages from NMS.ActiveMQ, here's an example: http://pastebin.com/xJPv9B8d Refer to the ActiveMQ docs for what information is available via advisory messages here: http://activemq.apache.org/advisory-message.html Regards -- Tim Bish ------------ FuseSource Email: tim.b...@fusesource.com Web: http://fusesource.com Twitter: tabish121 Blog: http://timbish.blogspot.com/