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 8B9C2F6DA for ; Tue, 23 Apr 2013 08:21:12 +0000 (UTC) Received: (qmail 97881 invoked by uid 500); 23 Apr 2013 08:21:12 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 97539 invoked by uid 500); 23 Apr 2013 08:21:10 -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 97518 invoked by uid 99); 23 Apr 2013 08:21:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Apr 2013 08:21:09 +0000 X-ASF-Spam-Status: No, hits=3.5 required=5.0 tests=HTML_MESSAGE,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of suonayi2006@163.com designates 220.181.13.144 as permitted sender) Received: from [220.181.13.144] (HELO m13-144.163.com) (220.181.13.144) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Apr 2013 08:21:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Received:Date:From:To:Subject:In-Reply-To: References:Content-Type:MIME-Version:Message-ID; bh=rzZVD+CIcaSx XTlXUE20lZ/llx30bW/hBy1ZRzzyZJE=; b=FBxjr1huksLM1TIWK9+1qN9sSdsB x39rAvhtUsltFUxcsk7qBKEyVEmeTZCcE33h2sVUpbJke+0dIr3Uus9HApuTwrol 1ybMWnObPY8rl+wIIqEpBa/LbqntktcixJsZk/gcrTom6GvbefNF4NeiIkkZLuax Kf7diKf7CJrRrwQ= Received: from suonayi2006$163.com ( [159.226.83.213] ) by ajax-webmail-wmsvr144 (Coremail) ; Tue, 23 Apr 2013 16:20:42 +0800 (CST) X-Originating-IP: [159.226.83.213] Date: Tue, 23 Apr 2013 16:20:42 +0800 (CST) From: SuoNayi To: users@activemq.apache.org Subject: Re:Is there a way to know when the standby exclusive consumer become active X-Priority: 3 X-Mailer: Coremail Webmail Server Version SP_ntes V3.5 build 20130412(21945.5326.5325) Copyright (c) 2002-2013 www.mailtech.cn 163com In-Reply-To: <1366698503369-4666137.post@n4.nabble.com> References: <1366698503369-4666137.post@n4.nabble.com> X-CM-CTRLDATA: +7WIFGZvb3Rlcl9odG09MTU3ODo4MQ== Content-Type: multipart/alternative; boundary="----=_Part_212070_178875320.1366705242448" MIME-Version: 1.0 Message-ID: <791d1dd7.e010.13e35fb0150.Coremail.suonayi2006@163.com> X-CM-TRANSID: kMGowEAZUURbRHZRmP4sAA--.3230W X-CM-SenderInfo: xvxr0td1lsiiqw6rljoofrz/1tbiMwAIGlEADrgIHQABsS X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_212070_178875320.1366705242448 Content-Type: text/plain; charset=GBK Content-Transfer-Encoding: 7bit yes, you can subscribe the advisory topic to get notified when consumers start or stop. For exclusive consumer it will release the exclusive lock when it's stopped, that means there must be a switch happening. At 2013-04-23 14:28:23,"Sean Guo" wrote: >I'm using active/active exclusive consumer model to consume message from the >ActiveMQ. Since I'm writing the consumed message files and split the file >based on time(e.g. 30min). When the active consumer dies and the standby >consume become active I need to start up the timer. So is there a way to >know there is a switch happened? > > > >-- >View this message in context: http://activemq.2283324.n4.nabble.com/Is-there-a-way-to-know-when-the-standby-exclusive-consumer-become-active-tp4666137.html >Sent from the ActiveMQ - User mailing list archive at Nabble.com. ------=_Part_212070_178875320.1366705242448--