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 C02C2200C49 for ; Fri, 17 Mar 2017 20:07:20 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id BED3F160B70; Fri, 17 Mar 2017 19:07:20 +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 38408160B80 for ; Fri, 17 Mar 2017 20:07:20 +0100 (CET) Received: (qmail 64761 invoked by uid 500); 17 Mar 2017 19:07:19 -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 64745 invoked by uid 99); 17 Mar 2017 19:07:19 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Mar 2017 19:07:19 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 0D1E8DFE1E; Fri, 17 Mar 2017 19:07:19 +0000 (UTC) From: clebertsuconic To: dev@activemq.apache.org Reply-To: dev@activemq.apache.org References: In-Reply-To: Subject: [GitHub] activemq-artemis pull request #1098: ARTEMIS-1042 - support amqp failover li... Content-Type: text/plain Message-Id: <20170317190719.0D1E8DFE1E@git1-us-west.apache.org> Date: Fri, 17 Mar 2017 19:07:19 +0000 (UTC) archived-at: Fri, 17 Mar 2017 19:07:20 -0000 Github user clebertsuconic commented on a diff in the pull request: https://github.com/apache/activemq-artemis/pull/1098#discussion_r106419741 --- Diff: artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/TopologyMemberImpl.java --- @@ -129,6 +131,22 @@ public String toURI() { return "tcp://" + host + ":" + port; } + public URI toBackupURI() { + TransportConfiguration backupConnector = getBackup(); + if (backupConnector == null) { + return null; --- End diff -- Instead of returning null, can't we return the other members on the list? I foresee a lot of cases where users don't have backup servers on the cloud.. and just have the infra-structure reconnecting them from data. Can you provide other nodes as a list here? --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---