Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 31589 invoked from network); 10 Feb 2011 15:58:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Feb 2011 15:58:46 -0000 Received: (qmail 65524 invoked by uid 500); 10 Feb 2011 15:58:46 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 65205 invoked by uid 500); 10 Feb 2011 15:58:44 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 65197 invoked by uid 99); 10 Feb 2011 15:58:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Feb 2011 15:58:43 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tabish@fusesource.com designates 74.125.245.80 as permitted sender) Received: from [74.125.245.80] (HELO na3sys010aog106.obsmtp.com) (74.125.245.80) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Feb 2011 15:58:36 +0000 Received: from source ([209.85.220.174]) (using TLSv1) by na3sys010aob106.postini.com ([74.125.244.12]) with SMTP ID DSNKTVQLFxH+4ja4EEyP33f+wFtcbxdX/0+m@postini.com; Thu, 10 Feb 2011 07:58:16 PST Received: by mail-vx0-f174.google.com with SMTP id 37so792282vxb.33 for ; Thu, 10 Feb 2011 07:58:15 -0800 (PST) Received: by 10.220.201.131 with SMTP id fa3mr5877540vcb.83.1297353495521; Thu, 10 Feb 2011 07:58:15 -0800 (PST) Received: from [192.168.2.150] (c-69-143-50-138.hsd1.va.comcast.net [69.143.50.138]) by mx.google.com with ESMTPS id u4sm83051vch.36.2011.02.10.07.58.14 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 10 Feb 2011 07:58:14 -0800 (PST) Subject: Re: Advisory Messages From: Timothy Bish Reply-To: tim.bish@fusesource.com To: users@activemq.apache.org In-Reply-To: <3181A30B8C35AB4AA8577B78DDF4613807D55B9D@nickel.mettonigroup.com> References: <3181A30B8C35AB4AA8577B78DDF4613807D55B9D@nickel.mettonigroup.com> Content-Type: text/plain; charset="UTF-8" Organization: FuseSource Date: Thu, 10 Feb 2011 10:58:13 -0500 Message-ID: <1297353493.2743.1.camel@office> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 (2.32.1-1.fc14) Content-Transfer-Encoding: 7bit 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.bish@fusesource.com Web: http://fusesource.com Twitter: tabish121 Blog: http://timbish.blogspot.com/