Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3325C9A40 for ; Wed, 15 Feb 2012 00:02:03 +0000 (UTC) Received: (qmail 57678 invoked by uid 500); 15 Feb 2012 00:02:02 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 57647 invoked by uid 500); 15 Feb 2012 00:02:02 -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 57639 invoked by uid 99); 15 Feb 2012 00:02:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Feb 2012 00:02:02 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Feb 2012 00:01:57 +0000 Received: from joe.nabble.com ([192.168.236.139]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RxSJU-00011P-GB for users@activemq.apache.org; Tue, 14 Feb 2012 16:01:36 -0800 Date: Tue, 14 Feb 2012 16:01:36 -0800 (PST) From: msmith To: users@activemq.apache.org Message-ID: <1329264096473-4389009.post@n4.nabble.com> In-Reply-To: <1287616006211-3004783.post@n4.nabble.com> References: <1287565919045-3003512.post@n4.nabble.com> <1287614454862-3004749.post@n4.nabble.com> <1287616006211-3004783.post@n4.nabble.com> Subject: Re: Duplicate brokers created in Tomcat MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello. I have a similar problem that I would greatly appreciate any guidance towards resolving it. I divided up a Spring web application into two WAR files and deployed them onto an Apache Tomcat 7 server. If either WAR is deployed I get no errors and can view the associated web pages, but if both are deployed at the same time the log states: INFO : org.apache.activemq.store.kahadb.plist.PListStore - PListStore:..\activemq-data\localhost\tmp_storage started INFO : org.apache.activemq.broker.BrokerService - Using Persistence Adapter: KahaDBPersistenceAdapter[C:\Program Files\Apache Software Foundation\Tomcat 7.0\..\activemq-data\localhost\KahaDB] INFO : org.apache.activemq.store.kahadb.MessageDatabase - Database ..\activemq-data\localhost\KahaDB\lock is locked... waiting 10 seconds for the database to be unlocked. Reason: java.io.IOException: File '..\activemq-data\localhost\KahaDB\lock' could not be locked as lock is already held for this jvm. INFO : org.apache.activemq.store.kahadb.MessageDatabase - Database ..\activemq-data\localhost\KahaDB\lock is locked... waiting 10 seconds for the database to be unlocked. Reason: java.io.IOException: File '..\activemq-data\localhost\KahaDB\lock' could not be locked as lock is already held for this jvm. The Tomcat server uses activemq-data and KahaDB as its file based persistence database (not sure what version - my apologies). Both projects contain the same (duplicate) ConnectionFactory bean: org.springframework.jms.connection.CachingConnectionFactory*" p:exceptionListener-ref="jmsExceptionListener" p:sessionCacheSize="100"> Finally, the jms broker URL specified within each project is: url=vm://localhost?broker.useJmx=false&broker.dataDirectory=../activemq-data I have been reading up on embedded vs. standalone activemq servers and have tried implementing both but have not met with success. My problem(s) here may be an obvious one - I have been looking too long at this and would welcome any suggestions or thoughts. -- View this message in context: http://activemq.2283324.n4.nabble.com/Duplicate-brokers-created-in-Tomcat-tp3003512p4389009.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.