Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 61739 invoked from network); 31 Jul 2007 11:15:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Jul 2007 11:15:34 -0000 Received: (qmail 58111 invoked by uid 500); 31 Jul 2007 11:15:33 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 58081 invoked by uid 500); 31 Jul 2007 11:15: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 58072 invoked by uid 99); 31 Jul 2007 11:15:32 -0000 Received: from Unknown (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Jul 2007 04:15:32 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.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, 31 Jul 2007 11:15:26 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1IFpgv-0006kn-Cj for users@activemq.apache.org; Tue, 31 Jul 2007 04:15:05 -0700 Message-ID: <11922240.post@talk.nabble.com> Date: Tue, 31 Jul 2007 04:15:05 -0700 (PDT) From: j0llyr0g3r To: users@activemq.apache.org Subject: Simple network of brokers + faultPersistenceAdapterFactory - Journal is locked MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: timo.roessner@wincor-nixdorf.com X-Virus-Checked: Checked by ClamAV on apache.org Hey folks, i am really getting desperate with the configuration of a simple network of brokers... What i wanted to do was: - One instance of activeMQ - 3 brokers running within that instance - 1 Producer and 2 Consumers In Ascii: Consumer Consumer | | broker_A broker_C \ / \ / \/ broker_B ^ | Producer So i thought the following broker-config.xml would do the trick: Broker_B listens on Port 61616 and knows the brokers "A" and "C" which should be listening on 61617 and 61618: Broker_B: Broker_A: Broker_C: Unfortunately, if i try to start to start active-mq via: ./activemq i get the following output: ACTIVEMQ_HOME: /opt/apache-activemq-4.1.1 ACTIVEMQ_BASE: /opt/apache-activemq-4.1.1 Loading message broker from: xbean:activemq.xml INFO BrokerService - ActiveMQ 4.1.1 JMS Message Broker (broker_A) is starting INFO BrokerService - For help or more information please see: http://incubator.apache.org/activemq/ INFO ManagementContext - JMX consoles can connect to service:jmx:rmi:///jndi/rmi://localhost:4444/jmxrmi INFO JDBCPersistenceAdapter - Database driver recognized: [apache_derby_embedded_jdbc_driver] INFO DefaultDatabaseLocker - Attempting to acquire the exclusive lock to become the Master broker INFO DefaultDatabaseLocker - Becoming the master on dataSource: org.apache.derby.jdbc.EmbeddedDataSource@1e55794 INFO JournalPersistenceAdapter - Journal Recovery Started from: Active Journal: using 5 x 20.0 Megs at: /opt/apache-activemq-4.1.1/activemq-data/broker_A/journal INFO JournalPersistenceAdapter - Journal Recovered: 0 message(s) in transactions recovered. INFO TransportServerThreadSupport - Listening for connections at: tcp://debln099:61617 INFO TransportConnector - Connector tcp://localhost:61617 Started INFO NetworkConnector - Establishing network connection between from vm:?network=true to tcp://localhost:61616 INFO BrokerService - ActiveMQ 4.1.1 JMS Message Broker (null) is starting INFO BrokerService - For help or more information please see: http://incubator.apache.org/activemq/ INFO JDBCPersistenceAdapter - Database driver recognized: [apache_derby_embedded_jdbc_driver] INFO ManagementContext - JMX consoles can connect to service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi INFO DefaultDatabaseLocker - Attempting to acquire the exclusive lock to become the Master broker INFO DefaultDatabaseLocker - Becoming the master on dataSource: org.apache.derby.jdbc.EmbeddedDataSource@158291 INFO JournalPersistenceAdapter - Journal Recovery Started from: Active Journal: using 2 x 20.0 Megs at: /opt/apache-activemq-4.1.1/bin/activemq-data/null/journal INFO JournalPersistenceAdapter - Journal Recovered: 0 message(s) in transactions recovered. INFO BrokerService - ActiveMQ JMS Message Broker (null, ID:debln099-46244-1185883671408-1:1) started INFO TransportConnector - Connector vm://null Started WARN NetworkConnector - Could not start network bridge between: vm:?network=true and: tcp://localhost:61616 due to: java.net.ConnectException: Connection refused INFO NetworkConnector - Network Connector bridge Started INFO BrokerService - ActiveMQ JMS Message Broker (broker_A, ID:debln099-46244-1185883671408-1:0) started INFO NetworkConnector - Establishing network connection between from vm:?network=true to tcp://localhost:61616 INFO TransportConnector - Connector vm://null Stopped INFO BrokerService - ActiveMQ 4.1.1 JMS Message Broker (null) is starting INFO BrokerService - For help or more information please see: http://incubator.apache.org/activemq/ INFO faultPersistenceAdapterFactory - Journal is locked... waiting 10 seconds for the journal to be unlocked. WARN ManagementContext - Failed to start jmx connector: Cannot bind to URL [rmi://localhost:1099/jmxrmi]: javax.naming.NameAlreadyBoundException: jmxrmi [Root exception is java.rmi.AlreadyBoundException: jmxrmi] INFO faultPersistenceAdapterFactory - Journal is locked... waiting 10 seconds for the journal to be unlocked. INFO faultPersistenceAdapterFactory - Journal is locked... waiting 10 seconds for the journal to be unlocked. INFO faultPersistenceAdapterFactory - Journal is locked... waiting 10 seconds for the journal to be unlocked. INFO faultPersistenceAdapterFactory - Journal is locked... waiting 10 seconds for the journal to be unlocked. INFO faultPersistenceAdapterFactory - Journal is locked... waiting 10 seconds for the journal to be unlocked. INFO faultPersistenceAdapterFactory - Journal is locked... waiting 10 seconds for the journal to be unlocked. INFO faultPersistenceAdapterFactory - Journal is locked... waiting 10 seconds for the journal to be unlocked. INFO faultPersistenceAdapterFactory - Journal is locked... waiting 10 seconds for the journal to be unlocked. As you can see, only broker_A is starting. Furthermore, every broker has a separate journal directory which is empty before starting AMQ: What the hack is wrong? To me the configuration seems to be right, can somebody release me from my misery? Why do the journal lock error? Thx in advance..... -- View this message in context: http://www.nabble.com/Simple-network-of-brokers-%2B-faultPersistenceAdapterFactory---Journal-is-locked-tf4192402s2354.html#a11922240 Sent from the ActiveMQ - User mailing list archive at Nabble.com.