Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 29212 invoked from network); 3 Oct 2007 15:41:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Oct 2007 15:41:25 -0000 Received: (qmail 69105 invoked by uid 500); 3 Oct 2007 15:39:50 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 69080 invoked by uid 500); 3 Oct 2007 15:39:50 -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 69071 invoked by uid 99); 3 Oct 2007 15:39:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Oct 2007 08:39:49 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of james.strachan@gmail.com designates 64.233.162.231 as permitted sender) Received: from [64.233.162.231] (HELO nz-out-0506.google.com) (64.233.162.231) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Oct 2007 15:39:49 +0000 Received: by nz-out-0506.google.com with SMTP id z3so2889573nzf for ; Wed, 03 Oct 2007 08:39:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=4rUILHvvxH6EQglxakQcnREjk1PYZDrbdhIBGobNrRY=; b=jkg63nI2rvKgD8LfL7og6O7p0f03xFbz8E/X2LfsfoaWlF/oz0R3L07x+WAwGnbhBvXcb384KwT87i6XOhuvQwo8tOGBT6XkK0m9H93y2gZz/Q1RqGd07U/Ut8fLjbRC9PyF60w98yQxHgCw0S/XMomgNRX89oTVwJgwSvJA6Pc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=eJkH/tGFbgM3kyh+aI/EKvCi95IKJx3PUeS7U1QMLO9ZN7tRDs7QPvC/NfWZzwEenleVKf7evD0HJHetCzPvRDdJSjm7nZa26jkYxxfq/WZTkIgBzz76VO4Zx185RKEYc/QrixLjkYA7yj2RdbfighCvS93rPnC+rFM49TAuW78= Received: by 10.65.254.5 with SMTP id g5mr12396954qbs.1191425967980; Wed, 03 Oct 2007 08:39:27 -0700 (PDT) Received: by 10.90.105.13 with HTTP; Wed, 3 Oct 2007 08:39:27 -0700 (PDT) Message-ID: Date: Wed, 3 Oct 2007 16:39:27 +0100 From: "James Strachan" To: users@activemq.apache.org Subject: Re: single broker + mysql + Attempting to acquire the exclusive lock to become the Master broker In-Reply-To: <13006218.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <13006218.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Try upgrading to a newer version; we've fixed up some of the SQL for locking the database. Or if you know you're only gonna run a single broker, you can disable database locking via... http://activemq.apache.org/maven/activemq-core/xsddoc/http___activemq.org_config_1.0/element/jdbcPersistenceAdapter.html#attr_useDatabaseLock On 02/10/2007, j0llyr0g3r wrote: > > Hey folks, > > i'm having real trouble here with mysql and activmq: > > When i start my (single!) broker i get an endless repitition of: > > INFO DefaultDatabaseLocker - Attempting to acquire the exclusive > lock to become the Master broker > INFO DefaultDatabaseLocker - Attempting to acquire the exclusive > lock to become the Master broker > INFO DefaultDatabaseLocker - Attempting to acquire the exclusive > lock to become the Master broker > INFO DefaultDatabaseLocker - Attempting to acquire the exclusive > lock to become the Master broker > INFO DefaultDatabaseLocker - Attempting to acquire the exclusive > lock to become the Master broker > INFO DefaultDatabaseLocker - Attempting to acquire the exclusive > lock to become the Master broker > INFO DefaultDatabaseLocker - Attempting to acquire the exclusive > lock to become the Master broker > INFO DefaultDatabaseLocker - Attempting to acquire the exclusive > lock to become the Master broker > > My configuration: > > - activemq 4.1 > - mysql 5.0 > - mysql connector 5.0.7 > > I am pretty sure that this is some kind of bug, but how do i solve this? > > My broker configuration is quite simple: > > > > class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/> > > xmlns="http://activemq.org/config/1.0"> > > > > > > > jmxDomainName="org.apache.activemq"/> > > > > dataSource="#mysql-ds"/> > > > > > > > > > destroy-method="close"> > > value="jdbc:mysql://localhost/activemq?relaxAutoCommit=true"/> > > > > > > > What can i do? > > I googled a lot, but found nothing relevant, the only thing i found was: > > SET AUTOCOMMIT = 0; > LOCK TABLE activemq.ACTIVEMQ_LOCK WRITE; > > But this didn't help. > > Thanks for every hint! > > -- > View this message in context: http://www.nabble.com/single-broker-%2B-mysql-%2B-Attempting-to-acquire-the-exclusive-lock-to-become-the-Master-broker-tf4557484s2354.html#a13006218 > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > > -- James ------- http://macstrac.blogspot.com/ Open Source SOA http://open.iona.com