Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 998BA86ED for ; Thu, 25 Aug 2011 00:20:37 +0000 (UTC) Received: (qmail 5290 invoked by uid 500); 25 Aug 2011 00:20:37 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 5110 invoked by uid 500); 25 Aug 2011 00:20:36 -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 5102 invoked by uid 500); 25 Aug 2011 00:20:36 -0000 Delivered-To: apmail-geronimo-activemq-dev@geronimo.apache.org Received: (qmail 5099 invoked by uid 99); 25 Aug 2011 00:20:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Aug 2011 00:20:35 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=RCVD_IN_DNSWL_MED,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gcjad-dev-2@m.gmane.org designates 80.91.229.12 as permitted sender) Received: from [80.91.229.12] (HELO lo.gmane.org) (80.91.229.12) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Aug 2011 00:20:30 +0000 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QwNfz-0003SN-Aj for activemq-dev@geronimo.apache.org; Thu, 25 Aug 2011 02:20:07 +0200 Received: from 190.7.201.234 ([190.7.201.234]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Aug 2011 02:20:07 +0200 Received: from ralfaro by 190.7.201.234 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Aug 2011 02:20:07 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: activemq-dev@geronimo.apache.org From: Rafael Alfaro Subject: Re: Discovery without multicast (like on EC2) Date: Thu, 25 Aug 2011 00:16:10 +0000 (UTC) Lines: 83 Message-ID: References: <1310373613913-3658967.post@n4.nabble.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 190.7.201.234 (Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0) Hiram Chirino writes: > > Another option is to use the HTTP based discovery agent. > > You just need to deploy the > org.apache.activemq.transport.discovery.http.DiscoveryRegistryServlet > to a web container on a EC2 machine. Lets assume it's been deployed > to a machine called 'yourhost'. > > Then configure > * the brokers to advertise their connectors to http://yourhost:80/default > * the clients to use discovery:(http://yourhost:80/default) > > Regards, > Hiram > > FuseSource > Web: http://fusesource.com/ > > On Mon, Jul 11, 2011 at 4:40 AM, Sam2222 wrote: > > Hi, > > > > I try to use Active MQ on amazon EC2 Cloud environnement. I need to > > add/remove broker at runtime. > > On JMS client, I can't use failover like > > "failover:(tcp://ip1:61600,tcp://ip2:61602)" because I didn't know neither > > the number of broker nor their addresses. > > > > So I try discovery with multicast : "discovery:(multicast://default)" > > But multicast is not supported on EC2 :( > > > > Anyboby work on new discovery method without multicast ? > > Like a system where Broker have to register their IP address on a database > > at startup and client use these addresses with failover. > > > > Or I missed something easier to use Active MQ on EC2 ? :) > > > > Thx > > > > Samuel > > > > -- > > View this message in context: http://activemq.2283324.n4.nabble.com/Discovery-without-multicast-like-on-EC2-tp3658967p3658967.html > > Sent from the ActiveMQ - Dev mailing list archive at Nabble.com. > > > > Hi Hiram, I have a question related to this HTTP based discovery agent. I have the Servlet deployed on an amazon EC2 linux machine: http://server:8080/activemq/DiscoveryRegistryServlet How is it exactly that I should configure the brokers and clientes to connect to this discovery agent? I have tried your suggestions with no luck so far: Brokers with the TransportConnector DiscoveryUri = http://server:8080/activemq/DiscoveryRegistryServlet and also http://server:8080/activemq/DiscoveryRegistryServlet/default Also added the same two urls to the DiscoveryNetworkConnector URI. For the clients I tried the following setups: discovery:(http://server:8080/activemq/DiscoveryRegistryServlet/default) http://server:8080/activemq/DiscoveryRegistryServlet/default Also with and without the /default to denote the group name. Looking into the DiscoveryRegistryServlet code, I found that it in fact reads the PathInfo to retrieve the service group name. Do I need to deploy any other jar besides the one containing the servlet and the logging libraries? Thank you, Rafael Alfaro