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 5D3C5FE7D for ; Thu, 4 Apr 2013 10:56:22 +0000 (UTC) Received: (qmail 12435 invoked by uid 500); 4 Apr 2013 10:56:21 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 12405 invoked by uid 500); 4 Apr 2013 10:56:21 -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 12381 invoked by uid 99); 4 Apr 2013 10:56:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Apr 2013 10:56:21 +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; Thu, 04 Apr 2013 10:56:16 +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=Z/7YIvxk8H1n EL2tp73tmyMZ15ZTCJXzjI0J1DICZbg=; b=S4ho/TdVgad7g04gi6K8Ifbg26tt JdhFeo4GtIsh3KdKDAV2gy9ScNdv4hbRnHRrFWRYIS5jv4etW/n9cGs3fyMImAKr 5qwm7jrbWv9uQ6bkM9rV2UlnnRSUIxEkiY5FN6dIwChWjXRLFPc7RWXK25wAefOQ FiuSEYiDk2t2FYM= Received: from suonayi2006$163.com ( [114.249.244.86] ) by ajax-webmail-wmsvr144 (Coremail) ; Thu, 4 Apr 2013 18:55:52 +0800 (CST) X-Originating-IP: [114.249.244.86] Date: Thu, 4 Apr 2013 18:55:52 +0800 (CST) From: SuoNayi To: users@activemq.apache.org Subject: Re:Webconsole failover not working? X-Priority: 3 X-Mailer: Coremail Webmail Server Version SP_ntes V3.5 build 20130201(21528.5249.5248) Copyright (c) 2002-2013 www.mailtech.cn 163com In-Reply-To: <1365069790196-4665493.post@n4.nabble.com> References: <1365069790196-4665493.post@n4.nabble.com> X-CM-CTRLDATA: VhZlvWZvb3Rlcl9odG09MzQ4Mzo4MQ== Content-Type: multipart/alternative; boundary="----=_Part_386649_331504764.1365072952771" MIME-Version: 1.0 Message-ID: <352e8657.19cd6.13dd4b03dc3.Coremail.suonayi2006@163.com> X-CM-TRANSID: kMGowEA5rkA5XF1RDXwPAA--.7591W X-CM-SenderInfo: xvxr0td1lsiiqw6rljoofrz/xtbBEB30GlD+OFUHJQABsD X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_386649_331504764.1365072952771 Content-Type: text/plain; charset=GBK Content-Transfer-Encoding: 7bit Hi, if you want to set up a web console instance to monitor the master/slave pair, you need deploy the web console application in a dedicated web container such as jetty or tomcat. Since the slave will keep trying to grab the exclusive lock to become master, it's not started completely and the jetty instance isn't start at the moment. This is why the dedicated web console in the dedicated web container can work. http://activemq.apache.org/web-console.html At 2013-04-04 18:03:10,ByteFlinger wrote: >Hi > >I have setup a simple broker master/slave setup with pretty much the default >activemq.xml config except having the added the HA part. > >Since the slave server does not answer until it becomes master, I am trying >to make the webconsole on both sides point always to the master server so >users don't have to keep checking which server is currently the master. > >What I have done is edited the activemq script under the bi directory and >added the following line (on both servers) > >ACTIVEMQ_OPTS="$ACTIVEMQ_OPTS >-Dwebconsole.jms.url='failover:(tcp://address1:61616,tcp://address2:61616)'" > >However I cannot get this to work. Whenever I type the URL of webconsole of >the slave server (for example http://address2:8161) it simply says that no >such page exists while the master works fine. > >As mentioned this is using more or less the default config so it is using >AMQ's embedded jetty server which configuration is being imported at the >bottom of the activemq.xml configuration file. > >Am I missing the point on how this is supposed to work, did I do something >wrong or is there anything that needs to be done? > > > >-- >View this message in context: http://activemq.2283324.n4.nabble.com/Webconsole-failover-not-working-tp4665493.html >Sent from the ActiveMQ - User mailing list archive at Nabble.com. ------=_Part_386649_331504764.1365072952771--