From users-return-27737-apmail-activemq-users-archive=activemq.apache.org@activemq.apache.org Fri Jun 3 15:05:51 2011 Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 591E56FC8 for ; Fri, 3 Jun 2011 15:05:51 +0000 (UTC) Received: (qmail 19909 invoked by uid 500); 3 Jun 2011 15:05:50 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 19883 invoked by uid 500); 3 Jun 2011 15:05:50 -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 19875 invoked by uid 99); 3 Jun 2011 15:05:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jun 2011 15:05:50 +0000 X-ASF-Spam-Status: No, hits=4.2 required=5.0 tests=HTML_MESSAGE,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jun 2011 15:05:43 +0000 Received: from joe.nabble.com ([192.168.236.139]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1QSVw9-0005h5-PG for users@activemq.apache.org; Fri, 03 Jun 2011 08:05:21 -0700 Date: Fri, 3 Jun 2011 08:05:21 -0700 (PDT) From: john To: users@activemq.apache.org Message-ID: <7C0800F63CCF4149AC0FC5EE2A041226089E51DC@sr002-2k3exc.ateb.com> In-Reply-To: References: <1307045604769-3569286.post@n4.nabble.com> Subject: RE: statisticsBrokerPlugin with Camel in Servicemix MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_11728_24501868.1307113521773" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_11728_24501868.1307113521773 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Yes, I tried going to ActiveMQ.Statistics.Broker. I assume that using the in Camel takes care of setting the replyTo. I finally created a unit test to run. This led to realize that it doesn't look like I get a statistics for a queue response back if no messages have been sent to the queue or if there is not a Camel consumer for the given queue. I've moved over to using the Broker statistics as you suggest while I get the route straight. I'm now to the point that I'm trying to use the same code from my working unit test in my servicemix deployed app. Even with working xml route moved from the unit test to my bundle I get the Camel timeout on a response. Is there a way to query activemq to ensure that my configuration change to the activemq.xml file which includes the statistics plugin took? That configuration the only difference I can think of between my unit test and the deployed app. Thanks, -john From: Rob Davies [via ActiveMQ] [mailto:ml-node+3570197-78408851-242274@n4.nabble.com] Sent: Friday, June 03, 2011 3:37 AM To: John Fansler Subject: Re: statisticsBrokerPlugin with Camel in Servicemix have you tried sending a message to ActiveMQ.Statistics.Broker - to see if you get a response (you need to set the replyTo destination on the message) ? On 2 Jun 2011, at 21:13, john wrote: > I'm running the fuse 4.2.0-fuse-02-00 release. > > It includes activemq 5.3.1 along with Camel 2.2 all running in ServiceMix. > > The two work great together, but now I'm trying to use the > statisticsBrokerPlugin to query the number of messages on a queue. > > I've attempted this several different ways in Camel, finally falling back to > the example route in the ActiveMQ in Action book but I still can't get a > response from the plugin. I have updated the activemq.xml file to include > the plugin. > > Every time I send a message to the statistics queue, I get an error because > the Camel route does not get a response within 20 seconds. > > Any help on how to determine whether the plugin is really active or how to > trace where things are falling apart is appreciated. > > Thanks! > > -john > > -- > View this message in context: http://activemq.2283324.n4.nabble.com/statisticsBrokerPlugin-with-Camel- in-Servicemix-tp3569286p3569286.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. ________________________________ If you reply to this email, your message will be added to the discussion below: http://activemq.2283324.n4.nabble.com/statisticsBrokerPlugin-with-Camel- in-Servicemix-tp3569286p3570197.html To unsubscribe from statisticsBrokerPlugin with Camel in Servicemix, click here . -- View this message in context: http://activemq.2283324.n4.nabble.com/statisticsBrokerPlugin-with-Camel-in-Servicemix-tp3569286p3571126.html Sent from the ActiveMQ - User mailing list archive at Nabble.com. ------=_Part_11728_24501868.1307113521773--