Return-Path: X-Original-To: apmail-geronimo-dev-archive@www.apache.org Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8ABB910AFC for ; Thu, 5 Dec 2013 00:32:21 +0000 (UTC) Received: (qmail 97332 invoked by uid 500); 5 Dec 2013 00:32:21 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 97204 invoked by uid 500); 5 Dec 2013 00:32:20 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 97197 invoked by uid 99); 5 Dec 2013 00:32:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Dec 2013 00:32:20 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [209.85.216.175] (HELO mail-qc0-f175.google.com) (209.85.216.175) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Dec 2013 00:32:15 +0000 Received: by mail-qc0-f175.google.com with SMTP id e9so4152431qcy.6 for ; Wed, 04 Dec 2013 16:31:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=9W/yjsgAGDaakfuH/hhPTN+EYXZ8engF7PG26V1GOPM=; b=dxx8fbI+xp2dG5Bkq5V/wDR1DiBS+Fn3fRS2EjMYktqiKeaGDv232ShM7+q+llgvU8 Jjg6YBTG6oeDU10DPRJoUGrtMSnB/DHBUwm5K2FeFDMOOotCeAloV15Hy7NZYtyukJC1 Hz3cRifd7KpJU9Y6TGBe47KbNGzJasmFbVf4oVKQRTG//jN4AV7vM2Nx7K6wpyFK0sek hZ9XHK4quCPWMYMZyW8ucwZ4hXgMK5clusS2e0zDkcsFIcK1Cpdra+JNau7fii1nCLVG h9elBuYfs4OJwAhjvbiv08nYT7Lv3ZHMHaQv+/HRf6U7YYdylN58LHl5VyL2eBrssRNS 8Sbw== X-Gm-Message-State: ALoCoQmLmafQkVjVX5ie+GG1cgrA8EFI27r780AjbJbrufYLM1zbmMFzemjytYtlbto/OqVXojMN MIME-Version: 1.0 X-Received: by 10.224.80.195 with SMTP id u3mr102252053qak.94.1386203513389; Wed, 04 Dec 2013 16:31:53 -0800 (PST) Received: by 10.96.184.133 with HTTP; Wed, 4 Dec 2013 16:31:53 -0800 (PST) Date: Wed, 4 Dec 2013 16:31:53 -0800 Message-ID: Subject: How to prevent activeMQ in geronimo 3.0.1 from creating the database tables during startup? From: Jack Cai To: user@geronimo.apache.org, dev@geronimo.apache.org Content-Type: multipart/alternative; boundary=001a11c3dce0009e1104ecbea8e5 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c3dce0009e1104ecbea8e5 Content-Type: text/plain; charset=UTF-8 Hi, When we change the persistence to postgresql 9.2.4 in Geronimo 3.0.1 for ActiveMQ, We keep running into this error: "[DefaultJDBCAdapter] Could not create JDBC tables; they could already exist. Failure was: ALTER TABLE ACTIVEMQ_ACKS DROP PRIMARY KEY Message: ERROR: syntax error at or near "PRIMARY"" We suspect activeMQ tries to create the tables during initialization. We try to use turn it off, but the setting that used to work in 3.0.0 no longer works in the new blueprint config activemq.xml. Can anyone help? (Either fix the create table error, or disable table creation) Thanks. Regards Jack --001a11c3dce0009e1104ecbea8e5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

=C2=A0 When we change the persisten= ce to postgresql 9.2.4 in Geronimo 3.0.1 for ActiveMQ, We keep running into= this error: "[DefaultJDBCAdapter] Could not create JDBC tables; they = could already exist. Failure was: ALTER TABLE ACTIVEMQ_ACKS DROP PRIMARY KE= Y Message: ERROR: syntax error at or near "PRIMARY""

=C2=A0 We suspect activeMQ tries to create the tables d= uring initialization. We try to use turn it off, but the setting that used = to work in 3.0.0 no longer works in the new blueprint config activemq.xml.= =C2=A0

=C2=A0 =C2=A0 =C2=A0 =C2=A0<amq:persistenceAdap= ter>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<amq:jdbcPers= istenceAdapter dataSource=3D"#postgres-ds"=C2=A0createTablesOnStartup=3D"false&= quot;>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0</amq:jdbcPersistenceAdapt= er>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 </amq:persistenceAdapter>= ;

=C2=A0Can anyone help? (Either fix the cre= ate table error, or disable table creation) Thanks.

Regards

Jack
--001a11c3dce0009e1104ecbea8e5--