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 9D6604859 for ; Wed, 15 Jun 2011 08:21:39 +0000 (UTC) Received: (qmail 16596 invoked by uid 500); 15 Jun 2011 08:21:39 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 16568 invoked by uid 500); 15 Jun 2011 08:21:39 -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 16560 invoked by uid 99); 15 Jun 2011 08:21:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jun 2011 08:21:39 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of chubrilo@gmail.com designates 209.85.161.43 as permitted sender) Received: from [209.85.161.43] (HELO mail-fx0-f43.google.com) (209.85.161.43) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jun 2011 08:21:33 +0000 Received: by fxm3 with SMTP id 3so286512fxm.2 for ; Wed, 15 Jun 2011 01:21:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=4UfenROR+D8MsOicRnHBFF1U73go+whv5ks95LzSE2E=; b=ZIZmPxv8WawoCV5MbMIEXh2wN/Vk2AinjW1wjFOileLGXQyIvhRBySW6yow12/6sOi h3adk80/aBrBUY0EgkgvAu+YZKeuK+GpzEIeoubjDGxRIGJpNNjpS36WosbrzTlU7FYV RPRa64hQoOwl7dHdqCXXG4UKEossZ3dIeZtas= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=cXhQe7iHS2mJQDl5SAqk9RrECJESSBI8D5tS/jC8dcJuvqzgLP/uHkkFQ7TMInzcE9 oj3gMPBCVNo1nKbGKZXmx4X3Wi5jqZq4z2SANLLET30DxWdH/d47QAFBghcLfKtxET+o sRZeHaOnURf45gIvQcE3x3XMiCROOc0yLjtyE= MIME-Version: 1.0 Received: by 10.223.47.209 with SMTP id o17mr228351faf.129.1308126073057; Wed, 15 Jun 2011 01:21:13 -0700 (PDT) Sender: chubrilo@gmail.com Received: by 10.223.96.201 with HTTP; Wed, 15 Jun 2011 01:21:13 -0700 (PDT) In-Reply-To: <57543684A62D694282FEA49A4CC2C9110FEC9E8D84@34093-MBX-C05.mex07a.mlsrvr.com> References: <57543684A62D694282FEA49A4CC2C9110FEC9E8D84@34093-MBX-C05.mex07a.mlsrvr.com> Date: Wed, 15 Jun 2011 10:21:13 +0200 X-Google-Sender-Auth: v0Ra8LnCCUzti5fqxEZgIQ-YXRs Message-ID: Subject: Re: Detect empty Queue programmatically From: Dejan Bosanac To: users@activemq.apache.org Content-Type: multipart/alternative; boundary=00151747598ce7f37a04a5bbd57f X-Virus-Checked: Checked by ClamAV on apache.org --00151747598ce7f37a04a5bbd57f Content-Type: text/plain; charset=ISO-8859-1 Hi, there's no such advisory at the moment, but you can create your own plugin that could do that. See http://activemq.apache.org/developing-plugins.html for more info Regards -- Dejan Bosanac - http://twitter.com/dejanb ----------------- The experts in open source integration and messaging - http://fusesource.com ActiveMQ in Action - http://www.manning.com/snyder/ Blog - http://www.nighttale.net On Wed, Jun 15, 2011 at 6:54 AM, Yuvaraj Vanarase < yuvaraj.vanarase@synechron.com> wrote: > Hi, > > I would like to fire some sql query when all messages are processed from > Queue ie. Queue becomes empty. I do not want to poll the queue to see > remaining messages. Is there any way by which activemq will deliever an > event to some listener? Like we have advisory message listener. > > Regards, > Yuvaraj > > Yuvaraj Vanarase, > Lead Technology - Software > Phone: +91.20.40262000 Ext 2305|Mobile: +91.9850818870 | > http://www.synechron.com > SYNECHRON - > - Top 10 Best IT Employers for 4 consecutive years (link< > http://www.synechron.com/news/news_best_employer_sep2010.htm>). > - Celebrating 10 Years! > > --00151747598ce7f37a04a5bbd57f--