Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 90696 invoked from network); 6 Oct 2009 22:06:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Oct 2009 22:06:30 -0000 Received: (qmail 57434 invoked by uid 500); 6 Oct 2009 22:06:29 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 57373 invoked by uid 500); 6 Oct 2009 22:06:29 -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 57363 invoked by uid 99); 6 Oct 2009 22:06:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Oct 2009 22:06:29 +0000 X-ASF-Spam-Status: No, hits=1.1 required=10.0 tests=FORGED_HOTMAIL_RCVD2,SPF_HELO_PASS,SPF_PASS 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; Tue, 06 Oct 2009 22:06:19 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MvIAQ-0001uD-O0 for users@activemq.apache.org; Tue, 06 Oct 2009 15:05:58 -0700 Message-ID: <25777346.post@talk.nabble.com> Date: Tue, 6 Oct 2009 15:05:58 -0700 (PDT) From: farshad To: users@activemq.apache.org Subject: Re: Question about Queue destinations in network of brokers In-Reply-To: <25776306.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: teez_housh@hotmail.com References: <25776018.post@talk.nabble.com> <25776306.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi Joe, Thank you for your reply. So, I set dynamicOnly to "true" and networkTTL to 4. The sender code puts messages in the queue and the receiver code connects and sometimes it gets all the messages and somtimes it gets some of them. I have to reconnect to get the rest of them. Also, if I shut down the broker that the messages were sent thru, no messages can be received. In my activemq.xml I have one broker definition and then copy the same config file into the all broker machines. Should each broker have its own unique broker definition? What is the use of staticallyIncludedQuues? Here's my config file: networkTTL=4 dynamicOnly=true Thank you, FarshadK Joe Fernandez wrote: > > You should use the static and not failover connector to configure your > network of brokers. Also make sure that you have the appropriate values > assigned to the networkTTL and dynamicOnly parameters. > > http://activemq.apache.org/networks-of-brokers.html > > Joe > http://www.ttmsolutions.com > > > > farshad wrote: >> >> I have a network of 4 brokers configuration with >> failover://(tcp://host1:61616,tcp://host2:61616,...) defined. My first >> piece of java code connects to one of these hosts (randomly) and puts >> some messages in a queue destination (e.g. Document.QUEUE). A second >> piece of java code connects to another one of these hosts and fails to >> read the messages. Is this expected behaviour? If I connect to one host >> and put messages in a queue and the host goes down what do I have to do >> to receive my messages connecting to another host in the network? >> >> Thank you in advance, >> FarshadK >> > > -- View this message in context: http://www.nabble.com/Question-about-Queue-destinations-in-network-of-brokers-tp25776018p25777346.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.