Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-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 113FDF6B6 for ; Thu, 4 Apr 2013 06:32:51 +0000 (UTC) Received: (qmail 94910 invoked by uid 500); 4 Apr 2013 06:32:50 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 94576 invoked by uid 500); 4 Apr 2013 06:32:50 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 94539 invoked by uid 99); 4 Apr 2013 06:32:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Apr 2013 06:32:48 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of claus.ibsen@gmail.com designates 209.85.210.177 as permitted sender) Received: from [209.85.210.177] (HELO mail-ia0-f177.google.com) (209.85.210.177) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Apr 2013 06:32:43 +0000 Received: by mail-ia0-f177.google.com with SMTP id w33so1986101iag.36 for ; Wed, 03 Apr 2013 23:32:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=XmF8ffZevPF7q7Brr9Ewwzl4+U7MEoDntlrBduJSIxY=; b=mRaHDtpf+sYWwc50YGNGmOC4Cs0Lqcc2Sh1De8iRuBKoFoOINd9XLc+JI/7gLDC7Lw 3iqDBlQMp5nkSer65+O8fdz03CUVLCg+Z6XuWBXxXVlg78rxBtCXhMsygm6pqq3zNpzl m1xJ60W359e96NiHFMbvJNBfbl+xmoikHf2hCXoMniaLM7XcXqMHaSaop3gf/Oc4lO6r VlmHAoNe/N1edfo3PmKH/0cScYS4dWb3yGPxqjkGdv/hnMLz9v7s+xSduz0W7s3FVSwm PwLTnRRrRkaXUExdhSr+EjwU4n8r0w1Wl54NTJFAj9GWvmm0TmhClsi5SGZVtjYYWp9z vwMw== X-Received: by 10.50.45.230 with SMTP id q6mr3155627igm.39.1365057142987; Wed, 03 Apr 2013 23:32:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.53.232 with HTTP; Wed, 3 Apr 2013 23:32:02 -0700 (PDT) In-Reply-To: <1365020491280-5730299.post@n5.nabble.com> References: <1365020491280-5730299.post@n5.nabble.com> From: Claus Ibsen Date: Thu, 4 Apr 2013 08:32:02 +0200 Message-ID: Subject: Re: Way to determine if Route is running or not To: "users@camel.apache.org" Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi Yes there is an org.apache.camel.spi.InflightRepository which you can get from CamelContext. There is a size method to return if there is any inflight messages for the given route id. Also form JMX you can see these numbers on the route mbeans. On Wed, Apr 3, 2013 at 10:21 PM, vishal1981 wrote: > Hi, > Is there a way to query the CamelContext to find out if a route is running > or not, as in, if a route is currently processing an exchange or a consumer > endpoint of the route such as FTP or File is in the process of retrieving a > file. > I modify the routes with certain settings from the UI. Hence I need to know > if a route is running or not before I tear it down and recreate it with new > settings. > thanks in advance, > -v- > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/Way-to-determine-if-Route-is-running-or-not-tp5730299.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: cibsen@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen