Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 42188 invoked from network); 14 Apr 2010 15:45:34 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Apr 2010 15:45:34 -0000 Received: (qmail 58468 invoked by uid 500); 14 Apr 2010 15:45:34 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 58315 invoked by uid 500); 14 Apr 2010 15:45:33 -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 58307 invoked by uid 99); 14 Apr 2010 15:45:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Apr 2010 15:45:33 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of chubrilo@gmail.com designates 209.85.218.225 as permitted sender) Received: from [209.85.218.225] (HELO mail-bw0-f225.google.com) (209.85.218.225) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Apr 2010 15:45:28 +0000 Received: by bwz25 with SMTP id 25so308864bwz.8 for ; Wed, 14 Apr 2010 08:45:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:received:message-id:subject :from:to:content-type; bh=iJL8bIZd86TOBWkTiKsMBUut4stivpQ1aCV6AcFY4GQ=; b=pJqM2nDHqmd6EaTi0VRkJ5j7h5A3ah80OFF6ae/xhhKTGBOz4vsk3cs+/M4PU4cyrs i/x8SOIt/z6gmpezhUPNx6+GfzwZ6EtbLhEklFPMos488EhwivtTOmxcHUH01R0evQqA KEh5C026PeVvKNRRRJXITQLziIBlMH4/WZr8E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=WKtLqcg3jGlxDkJQntcWl1U1gbsqiyUOxrsKxERGKYVC8Fz02mUz2vZUDhT6rfGxVf ykrJYbzj6zl/i8t/7n+7R/xKUL8F4FP5JS4DjQoa6ugDGW2FQPYGV6Gt2z5gyZwAqQZ0 WeiBQjvgTIBBQXvSsbKAQp4vn44tPXZnBJhGs= MIME-Version: 1.0 Sender: chubrilo@gmail.com Received: by 10.239.153.205 with HTTP; Wed, 14 Apr 2010 08:45:07 -0700 (PDT) In-Reply-To: <28244251.post@talk.nabble.com> References: <28233397.post@talk.nabble.com> <28244251.post@talk.nabble.com> Date: Wed, 14 Apr 2010 17:45:07 +0200 X-Google-Sender-Auth: 126e795cb050ac99 Received: by 10.239.137.197 with SMTP id m5mr413416hbm.62.1271259907282; Wed, 14 Apr 2010 08:45:07 -0700 (PDT) Message-ID: Subject: Re: Running ActiveMQ and having a database failover From: Dejan Bosanac To: users@activemq.apache.org Content-Type: multipart/alternative; boundary=001485f4503e30da0e0484344397 X-Virus-Checked: Checked by ClamAV on apache.org --001485f4503e30da0e0484344397 Content-Type: text/plain; charset=ISO-8859-1 Hi, if you're sure that only one broker will use database, you can try setting useDatabaseLock to false Cheers -- Dejan Bosanac - http://twitter.com/dejanb Open Source Integration - http://fusesource.com/ ActiveMQ in Action - http://www.manning.com/snyder/ Blog - http://www.nighttale.net On Wed, Apr 14, 2010 at 5:31 PM, icfantv wrote: > > That's a neat idea, but unfortunately for us it does not appear that > Postgresql supports a failover parameter in the connection URL. > Additionally, even if it did, it would depend on how it handled the > failover > so as to not cause ActiveMQ to puke. > > We use a floating IP address to point to the "primary" database server and > use HA to failover to the "secondary" (by simply changing to where the > floating IP address points) if the primary becomes unresponsive. > > I'm willing to bet that the problem here is that ActiveMQ uses an open > transaction to "lock" the table or tables necessary to prevent a failover > ActiveMQ server from taking over. > > If anyone else as any ideas/thoughts/solutions I would appreciate it. > Thanks. > > --adam > -- > View this message in context: > http://old.nabble.com/Running-ActiveMQ-and-having-a-database-failover-tp28233397p28244251.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > > --001485f4503e30da0e0484344397--