Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 79554 invoked from network); 1 Feb 2009 00:44:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Feb 2009 00:44:35 -0000 Received: (qmail 44190 invoked by uid 500); 1 Feb 2009 00:44:34 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 44157 invoked by uid 500); 1 Feb 2009 00:44:34 -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 44146 invoked by uid 99); 1 Feb 2009 00:44:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 31 Jan 2009 16:44:34 -0800 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 (nike.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; Sun, 01 Feb 2009 00:44:25 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LTQRQ-0004tl-BK for users@activemq.apache.org; Sat, 31 Jan 2009 16:44:04 -0800 Message-ID: <21770271.post@talk.nabble.com> Date: Sat, 31 Jan 2009 16:44:04 -0800 (PST) From: wangchao To: users@activemq.apache.org Subject: Re: [Apache.NMS.ActiveMQ]using FailoverTransport In-Reply-To: <21750420.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: wangchao8383@msn.com References: <21303879.post@talk.nabble.com> <21750420.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Thank you for your suggestion,semog. I tested the code again and found it's a wrong url.When I added the brackets arround the broker uri list(activemq:failover:(tcp://localhost:61616)),it ran correctly as described in the official document. If there's no broker running,the client application will blok;and when the broker start up,the client application will continue. The conclusion is that the broker uri list in failover transport must be bracketed even when there is only one uri. -- View this message in context: http://www.nabble.com/-Apache.NMS.ActiveMQ-using-FailoverTransport-tp21303879p21770271.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.