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 BB775913E for ; Tue, 22 Nov 2011 08:36:41 +0000 (UTC) Received: (qmail 32979 invoked by uid 500); 22 Nov 2011 08:36:41 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 32896 invoked by uid 500); 22 Nov 2011 08:36:38 -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 32509 invoked by uid 99); 22 Nov 2011 08:36:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Nov 2011 08:36:38 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=FREEMAIL_FROM,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 216.139.236.26 is neither permitted nor denied by domain of eugen.rabii@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Nov 2011 08:36:31 +0000 Received: from joe.nabble.com ([192.168.236.139]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RSlpq-000671-Ul for users@activemq.apache.org; Tue, 22 Nov 2011 00:36:10 -0800 Date: Tue, 22 Nov 2011 00:36:10 -0800 (PST) From: Eugene To: users@activemq.apache.org Message-ID: <1321950970945-4094882.post@n4.nabble.com> In-Reply-To: <5011107a.160b4.133c99a7043.Coremail.suonayi2006@163.com> References: <1321884810248-4091599.post@n4.nabble.com> <3b470560.139e2.133c6d1694f.Coremail.suonayi2006@163.com> <1321898615602-4092470.post@n4.nabble.com> <5011107a.160b4.133c99a7043.Coremail.suonayi2006@163.com> Subject: Re: Reply:Re: Reply:ActiveMQ Dispatcher Policy MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org stop is not really an option. stop will stop the MessageListener and not the actual DMLC. Restart either - if you call shutdown, I loose the entire JVM, thus no controll after that with JMX. So, my solution is to actually re-send the message to the Queue once they end-up in the Listener that is not supposed to take them. From there you can add an additional header for example and check it, so that you do not really keep sending the same message for infinite times to the same Listener (if other are not started). Cheers, Eugene. -- View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-Dispatcher-Policy-tp4091599p4094882.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.