Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 72415 invoked from network); 25 Oct 2007 09:50:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Oct 2007 09:50:13 -0000 Received: (qmail 58163 invoked by uid 500); 25 Oct 2007 09:50:00 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 58133 invoked by uid 500); 25 Oct 2007 09:50:00 -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 58121 invoked by uid 99); 25 Oct 2007 09:50:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Oct 2007 02:50:00 -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; Thu, 25 Oct 2007 09:50:02 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1IkzLR-0006As-Rm for users@activemq.apache.org; Thu, 25 Oct 2007 02:49:41 -0700 Message-ID: <13403327.post@talk.nabble.com> Date: Thu, 25 Oct 2007 02:49:41 -0700 (PDT) From: soloist To: users@activemq.apache.org Subject: JDBC Master Slave & MySql MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: v.soloist@gmail.com X-Virus-Checked: Checked by ClamAV on apache.org Hello, i am trying to get the JDBC M/s Configuration working using mysql. There was a locking issue on mysql with activemq 4.x so i am using the latest 5.0-SNAPSHOT. In my testcase, Master boots up just fine but when the slave is booting it is trying to insert some data into the db but it cannot and it is stuck at that point. When i add useDatabaseLock="false" on slave (i know doing this is wrong here but i am just trying to get it working) nothing changes,when i add this to both brokers, slave boots up too but they just act the same when a message arrives and i get a duplicate key error on db. So i could not find any workaround for this at the moment. the following is my master.xml And here is the slave: And here are the logs when slave wont boot up: - ActiveMQ 5.0-SNAPSHOT JMS Message Broker (Saruman) is starting - For help or more information please see: http://activemq.apache.org/ - JMX consoles can connect to service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmiSLAVE - Database driver recognized: [mysql-ab_jdbc_driver] - Executing SQL: CREATE TABLE ACTIVEMQ_MSGS(ID INTEGER NOT NULL, CONTAINER VARCHAR(250), MSGID_PROD VARCHAR(250), MSGID_SEQ INTEGER, EXPIRATION BIGINT, MSG LONGBLOB, PRIMARY KEY ( ID ) ) - Could not create JDBC tables; The message table already existed. Failure was: CREATE TABLE ACTIVEMQ_MSGS(ID INTEGER NOT NULL, CONTAINER VARCHAR(250), MSGID_PROD VARCHAR(250), MSGID_SEQ INTEGER, EXPIRATION BIGINT, MSG LONGBLOB, PRIMARY KEY ( ID ) ) Message: Table 'activemq_msgs' already exists SQLState: 42S01 Vendor code: 1050 - Executing SQL: CREATE INDEX ACTIVEMQ_MSGS_MIDX ON ACTIVEMQ_MSGS (MSGID_PROD,MSGID_SEQ) - Could not create JDBC tables; The message table already existed. Failure was: CREATE INDEX ACTIVEMQ_MSGS_MIDX ON ACTIVEMQ_MSGS (MSGID_PROD,MSGID_SEQ) Message: Duplicate key name 'ACTIVEMQ_MSGS_MIDX' SQLState: 42000 Vendor code: 1061 - Executing SQL: CREATE INDEX ACTIVEMQ_MSGS_CIDX ON ACTIVEMQ_MSGS (CONTAINER) - Could not create JDBC tables; The message table already existed. Failure was: CREATE INDEX ACTIVEMQ_MSGS_CIDX ON ACTIVEMQ_MSGS (CONTAINER) Message: Duplicate key name 'ACTIVEMQ_MSGS_CIDX' SQLState: 42000 Vendor code: 1061 - Executing SQL: CREATE INDEX ACTIVEMQ_MSGS_EIDX ON ACTIVEMQ_MSGS (EXPIRATION) - Could not create JDBC tables; The message table already existed. Failure was: CREATE INDEX ACTIVEMQ_MSGS_EIDX ON ACTIVEMQ_MSGS (EXPIRATION) Message: Duplicate key name 'ACTIVEMQ_MSGS_EIDX' SQLState: 42000 Vendor code: 1061 - Executing SQL: CREATE TABLE ACTIVEMQ_ACKS(CONTAINER VARCHAR(250) NOT NULL, SUB_DEST VARCHAR(250), CLIENT_ID VARCHAR(250) NOT NULL, SUB_NAME VARCHAR(250) NOT NULL, SELECTOR VARCHAR(250), LAST_ACKED_ID INTEGER, PRIMARY KEY ( CONTAINER, CLIENT_ID, SUB_NAME)) - Could not create JDBC tables; The message table already existed. Failure was: CREATE TABLE ACTIVEMQ_ACKS(CONTAINER VARCHAR(250) NOT NULL, SUB_DEST VARCHAR(250), CLIENT_ID VARCHAR(250) NOT NULL, SUB_NAME VARCHAR(250) NOT NULL, SELECTOR VARCHAR(250), LAST_ACKED_ID INTEGER, PRIMARY KEY ( CONTAINER, CLIENT_ID, SUB_NAME)) Message: Table 'activemq_acks' already exists SQLState: 42S01 Vendor code: 1050 - Executing SQL: CREATE TABLE ACTIVEMQ_LOCK( ID BIGINT NOT NULL, TIME BIGINT, BROKER_NAME VARCHAR(250), PRIMARY KEY (ID) ) - Could not create JDBC tables; The message table already existed. Failure was: CREATE TABLE ACTIVEMQ_LOCK( ID BIGINT NOT NULL, TIME BIGINT, BROKER_NAME VARCHAR(250), PRIMARY KEY (ID) ) Message: Table 'activemq_lock' already exists SQLState: 42S01 Vendor code: 1050 - Executing SQL: INSERT INTO ACTIVEMQ_LOCK(ID) VALUES (1) these tables are alrady created when the master boots up. Is there any configuration i am missing here? Sorry for the big post, and thanks in advance Mete -- View this message in context: http://www.nabble.com/JDBC-Master-Slave---MySql-tf4689654s2354.html#a13403327 Sent from the ActiveMQ - User mailing list archive at Nabble.com.