Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 43172 invoked from network); 9 Sep 2008 11:11:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Sep 2008 11:11:13 -0000 Received: (qmail 86839 invoked by uid 500); 9 Sep 2008 11:11:10 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 86714 invoked by uid 500); 9 Sep 2008 11:11:09 -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 86703 invoked by uid 99); 9 Sep 2008 11:11:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Sep 2008 04:11:09 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Sep 2008 11:10:10 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Kd17J-0002eF-C8 for users@activemq.apache.org; Tue, 09 Sep 2008 04:10:41 -0700 Message-ID: <19390103.post@talk.nabble.com> Date: Tue, 9 Sep 2008 04:10:41 -0700 (PDT) From: Joe Fernandez To: users@activemq.apache.org Subject: Re: Network of brokers - java.net.ConnectException: Connection refused In-Reply-To: <19386336.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: joe.fernandez@ttmsolutions.com References: <19386336.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org The 'vm' transport is reserved for clients, so take it out. http://activemq.apache.org/vm-transport-reference.html You also have a network connector that points the broker to itself, so also take those out. Try the following cfg files below. Hope this helps. Joe Get a free ActiveMQ user guide @ http://www.ttmsolutions.com mjoshi wrote: > > Hi, > > I am new to activemq. I am trying to setup a message system with a network > of brokers style configuration as given in the documentation. I have > brokers running on 2 hosts and I have added network connectors in both > directions. However, I keep getting this exception in the logs for only > one of the hosts - > Host:sdt-plat2 > > DiscoveryNetworkConnector:84 - Establishing network connection between > from vm://localhost to > tcp://sdt-plat1:61616 > WARN DiscoveryNetworkConnector:109 - Could not start network bridge > between: vm://localhost and: > tcp://sdt-plat1:61616 due to: java.net.ConnectException: Connection > refused > 09/08/08 21:26:15 INFO DemandForwardingBridge:368 - localhost bridge to > Unknown stopped > > However, on the other host (sdt-plat1) I see - > > NetworkConnector:208 - Network Connector bridge1 Started > 09/08/08 17:08:03 INFO DiscoveryNetworkConnector:84 - Establishing > network connection between from vm://localhost to tcp://sdt-plat2:61616 > 09/08/08 17:08:03 INFO NetworkConnector:208 - Network Connector bridge2 > Started > > Why do I get the connect exception only on one host ? Here is my > configuration - > > > > > directory="../3509/data" maxFileLength="40 mb"/> > > > > > > > > > dynamicOnly="true" /> > dynamicOnly="true" /> > > > > > What am I doing wrong ? Any suggestions would be helpful.. > > thanks, > mj > -- View this message in context: http://www.nabble.com/Network-of-brokers---java.net.ConnectException%3A-Connection-refused-tp19386336p19390103.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.