Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 28097 invoked from network); 1 Sep 2006 05:33:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Sep 2006 05:33:48 -0000 Received: (qmail 29618 invoked by uid 500); 1 Sep 2006 05:33:48 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 29311 invoked by uid 500); 1 Sep 2006 05:33:47 -0000 Mailing-List: contact activemq-users-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-users@geronimo.apache.org Delivered-To: mailing list activemq-users@geronimo.apache.org Received: (qmail 29302 invoked by uid 99); 1 Sep 2006 05:33:47 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Aug 2006 22:33:47 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of rajdavies@gmail.com designates 64.233.182.190 as permitted sender) Received: from [64.233.182.190] (HELO nf-out-0910.google.com) (64.233.182.190) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Aug 2006 22:33:45 -0700 Received: by nf-out-0910.google.com with SMTP id c29so614392nfb for ; Thu, 31 Aug 2006 22:33:23 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:mime-version:in-reply-to:references:content-type:message-id:from:subject:date:to:x-mailer; b=WrEsdO5NwbDd5tJEgfyUZZYH2Cgh0Acs6YklpIpdy/rKpqqh9rnnQ82QVs8jayZ/iBIs2aPYtZx3WYJqO7dQ8fz8J7xVKDpB1b8GaWiEtGvZJRTcSZtZ2uWCFt9eubmdtRcQS7xNExhJ1TqyiUuht/3z7NgLW1xKgJiLHMq1nMg= Received: by 10.49.41.12 with SMTP id t12mr2483126nfj; Thu, 31 Aug 2006 22:33:23 -0700 (PDT) Received: from ?192.168.15.105? ( [81.154.167.121]) by mx.gmail.com with ESMTP id a24sm2956705nfc.2006.08.31.22.33.22; Thu, 31 Aug 2006 22:33:23 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: <6084768.post@talk.nabble.com> References: <6084768.post@talk.nabble.com> Content-Type: multipart/alternative; boundary=Apple-Mail-7-540458872 Message-Id: <5FC5AAA9-07E9-4229-9F82-F29645162523@gmail.com> From: Rob Davies Subject: Re: 4.1 Master/Slave Date: Fri, 1 Sep 2006 06:33:21 +0100 To: activemq-users@geronimo.apache.org X-Mailer: Apple Mail (2.752.2) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --Apple-Mail-7-540458872 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed couple of things - don't use the journal and don't set the randomize=false option on the failover transport - see: http:// www.activemq.org/site/jdbc-master-slave.html cheers, Rob Rob Davies http://rajdavies.blogspot.com/ On 31 Aug 2006, at 18:58, chanaka wrote: > > AMQ Version: 4.1-incubator-20060821 > > Problem: Producer hangs in createConnection(). > > Description: I have two brokers running on the same box, at ports > 61618 > (broker1) and 61620 (broker2) , configured for jdbc master/slave. > My xml > config is attached (AMQBrokerTest.devenv2.xml). From the logs I can > see that > broker 1 is master and broker 2 is slave. > > Now, when I start my consumer (ConsumerTool) and producer > (ProducuerTool) in > that order, using durable subscriptions, producer hangs in > createConnection > method. Output from kill -3 is attached (producer.out). Clients > connect to > the brokers using the following url. > > failover:(tcp://devenv2:61618:,tcp://devenv2:61620)?randomize=false > > However, if I switch broker end points in the above url to have the > slave > broker first, producer works fine. > > Also, I am seeing the same behavior (that it hangs when the url has > master > end point before slave, and it works otherwise) when the brokers > are setup > to use the "shared file system master slave". > > Am I doing anything wrong ? > > Many thanks. > > Chanaka > > > > http://www.nabble.com/user-files/235829/producer.out producer.out > http://www.nabble.com/user-files/235830/AMQBrokerTest.devenv2.xml > AMQBrokerTest.devenv2.xml > -- > View this message in context: http://www.nabble.com/4.1-Master- > Slave-tf2198316.html#a6084768 > Sent from the ActiveMQ - User forum at Nabble.com. > --Apple-Mail-7-540458872--