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 4295A100C5 for ; Thu, 26 Sep 2013 13:19:11 +0000 (UTC) Received: (qmail 23847 invoked by uid 500); 26 Sep 2013 13:19:07 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 23307 invoked by uid 500); 26 Sep 2013 13:19:04 -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 23255 invoked by uid 99); 26 Sep 2013 13:19:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Sep 2013 13:19:03 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of christian.posta@gmail.com designates 209.85.217.177 as permitted sender) Received: from [209.85.217.177] (HELO mail-lb0-f177.google.com) (209.85.217.177) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Sep 2013 13:18:57 +0000 Received: by mail-lb0-f177.google.com with SMTP id w7so1048979lbi.22 for ; Thu, 26 Sep 2013 06:18:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=csoTwIVRHM5h4SjKOGQhhRbDv46BRslqhT83Gt0Ohtw=; b=TOaJUq/roLH6/ZSiY7VgdAZF8z1ow/2vI1fM/RjkH/czcpzCQK9MMsfDyyk4B3c8d5 9Ss70uzrzf/OHdE67H9XgA+9DOuVu3mqFjmbnZutgQmL9nEdb+ev2bWrNGnT6R0wWKA+ /2Qv5opg2m9olBj9XsiCBEENWYVibWJ7g6pXw50Bjoa2QJ+A/HYDFEn4kxLgw/5P/K+C AEAd8xb7tKoRjjPi3x3XqWTw1DrRiXYVd1cCykGXo4tnjON6+z2RKKNkkbwQ6TAsu36p Tmne1IVDZT43J4oERWfI+tDEpq97qDFb8mEglf1Q7x4zYMJ+Secm9RF+vJVTRXLCGBO+ LYLg== MIME-Version: 1.0 X-Received: by 10.112.167.3 with SMTP id zk3mr3882001lbb.23.1380201516753; Thu, 26 Sep 2013 06:18:36 -0700 (PDT) Received: by 10.114.2.239 with HTTP; Thu, 26 Sep 2013 06:18:36 -0700 (PDT) In-Reply-To: <1380190812661-4671849.post@n4.nabble.com> References: <1380019416344-4671788.post@n4.nabble.com> <1380109743911-4671815.post@n4.nabble.com> <1380190812661-4671849.post@n4.nabble.com> Date: Thu, 26 Sep 2013 06:18:36 -0700 Message-ID: Subject: Re: Statistics Plugin for ActiveMQ broker From: Christian Posta To: "users@activemq.apache.org" Content-Type: multipart/alternative; boundary=001a11c264a41fed7404e74935c2 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c264a41fed7404e74935c2 Content-Type: text/plain; charset=ISO-8859-1 Yes, if camel is deployed alongside the broker, it runs in the same JVM. You should check out some of the example configs that ship with ActiveMQ... you'll see an tag (example... conf/activemq-demo.xml) With camel you can have a route like this: from(timer:statsLogger?period=1000).inOut().to("activemq:queue:ActiveMQ.Statistics.Broker").log("${body}") That should get you started, and on the right track. You can specify more options around the timer, jms/activemq component, and logging: http://camel.apache.org/timer.html http://camel.apache.org/jms.html http://camel.apache.org/activemq.html http://camel.apache.org/logeip.html On Thu, Sep 26, 2013 at 3:20 AM, johnbing wrote: > Hey, > > Currently I am not using camel with my broker. > After your last post I read about camel, but got stuck with some questions. > -- Is camel uses same PID as of ActiveMQ broker ? I want to log all stats > into the same ActiveMQ log file. > -- I am not able to understand how camel can be used to extract stats of > the > broker, Do I need to use any EIP for camel. > > Please let me know if any important blog or some link you have regarding > ActiveMQ integration with camel. > > Thanks, > John > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/Statistics-Plugin-for-ActiveMQ-broker-tp4671788p4671849.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > -- *Christian Posta* http://www.christianposta.com/blog twitter: @christianposta --001a11c264a41fed7404e74935c2--