Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4941F200B4A for ; Wed, 20 Jul 2016 10:10:30 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 47D39160A73; Wed, 20 Jul 2016 08:10:30 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 904FC160A64 for ; Wed, 20 Jul 2016 10:10:29 +0200 (CEST) Received: (qmail 78619 invoked by uid 500); 20 Jul 2016 08:10:28 -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 78607 invoked by uid 99); 20 Jul 2016 08:10:28 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jul 2016 08:10:28 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id CD63AC07CB for ; Wed, 20 Jul 2016 08:10:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.492 X-Spam-Level: ** X-Spam-Status: No, score=2.492 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 7gsxynoSeS9b for ; Wed, 20 Jul 2016 08:10:23 +0000 (UTC) Received: from mail-lf0-f45.google.com (mail-lf0-f45.google.com [209.85.215.45]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 3781560CE6 for ; Wed, 20 Jul 2016 08:10:23 +0000 (UTC) Received: by mail-lf0-f45.google.com with SMTP id b199so32630095lfe.0 for ; Wed, 20 Jul 2016 01:10:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=5DTqk2iciZgOCOdpY5OY9qFdm+vVLnIHxGPpTiwQsMc=; b=QAf2YpK+qY6DV/PtXr3t+ny+A++mqR2EY5Nb7n+1peYv0HvKA93Knm8ENGGpjWThN6 6PvDcwVDJYyLuxLg7VQ3KFb8H3fBbZrq0q/5CD90V6gukJ5FzhOhUot2F9v/q9RU61zU HoRrxY9zBMBbIPIog3OFYKrXe4rYCvN29/izveGijtH7hvYT7j6b6mJxND/SiwE9vCJ7 wy6TaTAB1uRoTrPV8sBt/aXj8k+IpPe3MXw93zSQiWOZnTHPW8iAqxxeUbolZGOtmKLu L7p+m7KuwFV0JNLVzQWC3+7/TR284hwhi7l0Z1nUnulpxQx9QhH+0Z4aFLoT8saxnBKd z2LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=5DTqk2iciZgOCOdpY5OY9qFdm+vVLnIHxGPpTiwQsMc=; b=HOaW+1e1jz1/GDUwNrdJFYQ/Thmt1vtufPPVLEZNneKWN/dHr+4vvXmkP9wQeWHl8f Jl1RQLO1G235DMZsMGdyZfQn7/DaFhvsb3ZW5FxCdcw8cvX7WQ0O+1zvi2go309Ycv5P U+PdVOuAaCD3RZ/bhDWNIjBmctj7pWx35MgDLFVYQz2z1F2Jl7QksM7jB10/bUabYtiy TkTQxW86oFYqueUYB58dfHV9TuukCxH0masJAry5gbz6ztfpyFlp/qPpk1b4TXAQ4mks Chz4dxzQ0KBeREpHP7C5BQ4fZyxjBdiJbKoQsgbhlnt2I07TPknzTU+HSn00GYxf/+pG XpOg== X-Gm-Message-State: ALyK8tJ8Ra94OxLdOhiV5+ZfNABnULU47UJM7zHCd2sG/GhMjZ3qd9K7F8r5g6qTK/o3SFKD/d3XR+QBNON/8g== X-Received: by 10.25.157.19 with SMTP id g19mr20418456lfe.216.1469002222082; Wed, 20 Jul 2016 01:10:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.224.11 with HTTP; Wed, 20 Jul 2016 01:10:21 -0700 (PDT) In-Reply-To: <1468915251494-5785225.post@n5.nabble.com> References: <1468915251494-5785225.post@n5.nabble.com> From: Antoine DESSAIGNE Date: Wed, 20 Jul 2016 10:10:21 +0200 Message-ID: Subject: Re: Time taken to read messages from queue To: users@camel.apache.org Content-Type: multipart/alternative; boundary=001a11402ebe9f212705380cbb6c archived-at: Wed, 20 Jul 2016 08:10:30 -0000 --001a11402ebe9f212705380cbb6c Content-Type: text/plain; charset=UTF-8 Hello. That's something that you may extract from your JMS queue itself. That beeing said, if you have burst of data you can use the log component to tell what's happening. For instance you can use It will tell you in the log, the number of exchange processed during the last 10 seconds. When it reaches zero then you have read everything. Hope this helps Antoine 2016-07-19 10:00 GMT+02:00 fxthomas : > Hello, > > I want to know if there is a simple way in camel to measure the time taken > by route to read all messages present in the queue. Example My queue get > populated on some time intervals , so i want to know how time it took just > for the JMS component to read from the queue and not the full time cycle of > the exchange. > MY route as below > > shutdownRunningTask="CompleteCurrentTaskOnly" id="ProcessQueue" > autoStartup="true"> > > > > uri="bean:routeQueueBean?method=parseQueueMessage(${body},'databasebean')"/> > > java.lang.Exception > false > > > completionTimeout="3000" completionSize="100" completeAllOnStop="false"> > > true > > uri="bean:routeQueueBean?method=processQueueMessage('databasebean')"/> > > > > > I want only the time taken by the route to read the all the messages in the > queue present at the time. Like a batch total time . > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Time-taken-to-read-messages-from-queue-tp5785225.html > Sent from the Camel - Users mailing list archive at Nabble.com. > --001a11402ebe9f212705380cbb6c--