Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 50313 invoked from network); 27 May 2010 17:07:16 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 27 May 2010 17:07:16 -0000 Received: (qmail 5801 invoked by uid 500); 27 May 2010 17:07:16 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 5761 invoked by uid 500); 27 May 2010 17:07:16 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 5753 invoked by uid 99); 27 May 2010 17:07:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 May 2010 17:07:16 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 May 2010 17:07:14 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o4RH6qk1027301 for ; Thu, 27 May 2010 17:06:52 GMT Message-ID: <13879097.4981274980012054.JavaMail.jira@thor> Date: Thu, 27 May 2010 13:06:52 -0400 (EDT) From: "Gary Tully (JIRA)" To: dev@activemq.apache.org Subject: [jira] Commented: (AMQ-2753) Allow duplicate topic subscriptions in a network and use dispatch policy to use highest priority subscriptions such that the duplicates are only used for redundancy In-Reply-To: <13268435.4961274979651785.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQ-2753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=59581#action_59581 ] Gary Tully commented on AMQ-2753: --------------------------------- r948911, add priority network consumer dispatch policy that will ignore duplicates such that there can be redundancy in the network with the addition of suppressDuplicateTopicSubscriptions attribute on a network bridge, think this should do it. {code}PolicyEntry policy = new PolicyEntry(); policy.setDispatchPolicy(new PriorityNetworkDispatchPolicy());{code} > Allow duplicate topic subscriptions in a network and use dispatch policy to use highest priority subscriptions such that the duplicates are only used for redundancy > -------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: AMQ-2753 > URL: https://issues.apache.org/activemq/browse/AMQ-2753 > Project: ActiveMQ > Issue Type: Improvement > Components: Broker > Affects Versions: 5.3.2 > Reporter: Gary Tully > Assignee: Gary Tully > Fix For: 5.4.0 > > > duplicate topic subscriptions are suppressed in a cyclic network, https://issues.apache.org/activemq/browse/AMQ-2030 but there is a use case where they can be usefull. > imagine a usecase where we produce on the one broker and consume on other. These two brokers have a cyclic network connection between them. So usually the message is going directly from broker A to broker B, but when that network connector goes down, topic consumer on broker B stops receiving messages. We want to have a "message rerouting", so that in failure case messages start flowing A->C->B route, without a need to re-subscribe. > With a cyclic network like this, if we allow the duplicate subscriptions we need to choose among them to suppress duplicates and reduce network load. https://issues.apache.org/activemq/browse/AMQ-2704 added the audit which can help if we don't choose among the duplicates. > A PriorityNetworkDispatchPolicy can choose to dispatch to the highest priority subscription in the case of duplicate network consumers so that the messages are suppressed at source. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.