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 BAB557321 for ; Mon, 19 Dec 2011 13:00:32 +0000 (UTC) Received: (qmail 30736 invoked by uid 500); 19 Dec 2011 13:00:32 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 30709 invoked by uid 500); 19 Dec 2011 13:00:32 -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 30701 invoked by uid 99); 19 Dec 2011 13:00:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Dec 2011 13:00:32 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sslavic@gmail.com designates 74.125.82.41 as permitted sender) Received: from [74.125.82.41] (HELO mail-ww0-f41.google.com) (74.125.82.41) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Dec 2011 13:00:25 +0000 Received: by wgbdt12 with SMTP id dt12so6644295wgb.2 for ; Mon, 19 Dec 2011 05:00:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=S543LV5OrC9AH9fPEhrL89r1UEVUYjZ5bTMu2QgTnho=; b=gU4iQMi9MlZ9/iYSr77Jf1ZufqH/eUhUIwNspLcN/d8mVX3LSk3wvzBReUqSqxnGsu zvQQ4BwuF64xYh2Hz/GZ+/ftThg1QoPRvgP0eyr5gFJqiIvEFyg0Z+zAl67Nfpc235cW 1RVo1K0ymkfuNEmVtgThDe6VndLV3mrL1YqW4= MIME-Version: 1.0 Received: by 10.216.134.196 with SMTP id s46mr6783847wei.44.1324299604669; Mon, 19 Dec 2011 05:00:04 -0800 (PST) Received: by 10.180.97.134 with HTTP; Mon, 19 Dec 2011 05:00:04 -0800 (PST) Date: Mon, 19 Dec 2011 14:00:04 +0100 Message-ID: Subject: Obtaining URLs of ActiveMQ instances From: =?UTF-8?Q?Stevo_Slavi=C4=87?= To: users Content-Type: multipart/alternative; boundary=0016e6de173c83349904b4718757 --0016e6de173c83349904b4718757 Content-Type: text/plain; charset=ISO-8859-1 Hello ActiveMQ community, Is there an API in ActiveMQ that can be reused to parse broker URL string and determine URL of each broker? I have clients (producers and consumers) configured to access two master/slave brokers using failover protocol via a property, but would like to get urls of each one of them from the same config property. Need to implement checking whether both brokers are masters or both are down and perform some alarming/notifications about invalid/unexpected state. I can always implement some custom URL parsing, but would prefer to reuse any logic already built in ActiveMQ. Regards, Stevo. --0016e6de173c83349904b4718757--