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 91F20118E9 for ; Wed, 17 Sep 2014 20:15:27 +0000 (UTC) Received: (qmail 21336 invoked by uid 500); 17 Sep 2014 20:15:21 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 21260 invoked by uid 500); 17 Sep 2014 20:15:21 -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 21236 invoked by uid 99); 17 Sep 2014 20:15:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Sep 2014 20:15:21 +0000 X-ASF-Spam-Status: No, hits=3.9 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX,URI_TRY_3LD X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tbain98@gmail.com designates 209.85.216.181 as permitted sender) Received: from [209.85.216.181] (HELO mail-qc0-f181.google.com) (209.85.216.181) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Sep 2014 20:15:17 +0000 Received: by mail-qc0-f181.google.com with SMTP id r5so3094046qcx.12 for ; Wed, 17 Sep 2014 13:14:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=x+4H2ie4Q3ePNzY5HJ2MrrgI7al7SZw6TrqtVeiTQ0M=; b=FQ+8HDv7VqwVarArS9mpTSY1YryoEv6OuIU/xnoUui25bKlobvcXHaBhunmPz+bmEL PdKB1EEeGihqRRvXMbgz2ljCJFvQ0JeEu5YGRiZ99GUvaL3aM97mBBaL2AR93jNz30Rx P9CQRFXHO80P3RJGQ6oF76EXlVRQSRSUpPVlIXQljwbVHIyj2J1AWqUld976V4iyB+ds xYt1fUfUQt5bxrOcKBAXeoTD3fKXDzMW4Iv47PiHHkAm4DYG4Mm1/8NbqPTdaky/Ec+l WawiZE4vCJeu1qCw3BtFlji0ftrM7CTgIvxBuIa1ltw/REk3YQYhyRroHm7can3K7DRb 1SYg== X-Received: by 10.229.231.68 with SMTP id jp4mr937761qcb.4.1410984896723; Wed, 17 Sep 2014 13:14:56 -0700 (PDT) MIME-Version: 1.0 Sender: tbain98@gmail.com Received: by 10.229.230.134 with HTTP; Wed, 17 Sep 2014 13:14:36 -0700 (PDT) In-Reply-To: <1410939581641-4685625.post@n4.nabble.com> References: <1410939581641-4685625.post@n4.nabble.com> From: Tim Bain Date: Wed, 17 Sep 2014 14:14:36 -0600 X-Google-Sender-Auth: _XsmdzQPJiQyYDrAG4iNIa1Zw8U Message-ID: Subject: Re: ActiveMQ-DB-persistence To: ActiveMQ Users Content-Type: multipart/alternative; boundary=001a1134497a8d816905034885b3 X-Virus-Checked: Checked by ClamAV on apache.org --001a1134497a8d816905034885b3 Content-Type: text/plain; charset=UTF-8 Hopefully you saw that the mailing list thread you referenced was from nine years ago. You might want to consult more current information, such as http://activemq.apache.org/persistence.html and http://activemq.apache.org/jdbc-master-slave.html. I've not used JDBC persistence in years, but my understanding is that the tables are created automatically; you could test that by creating a small test database and pointing AMQ at it and seeing what happens. You can see the table definitions by looking at the SQL commands that create them e.g. in http://grepcode.com/file/repo1.maven.org$maven2@org.apache.activemq$activemq-osgi@5.10.0@org$apache$activemq$store$jdbc$Statements.java or directly within the ActiveMQ source code. But all of this begs the question "Why are you using JDBC?" By all accounts, it's far less performant than LevelDB or even KahaDB, so why is this a path you're even trying to go down, rather than using one of those other performance adapters? Tim On Wed, Sep 17, 2014 at 1:39 AM, mauro wrote: > hi all . Excuse me but i am a newbie of AMQ > > I am a TOMEE users . > > I study JMS and now i would try to use the durable Topic messages. > > I have read from : > > > http://activemq.2283324.n4.nabble.com/activemq-user-ActiveMQ-DB-persistence-td2342731.html > > Now i would try to persist durable topic messages to mydatasource myql > declared into tomee.xml . > > From the article reported above i have read some on journal use ????????? > > 1) what it is journal ? > 2) how i can config for use mydatasource for persist the durable topic > messages? > 3) into the db mysql, what table i have to create? > 4) the tables what field contain? > 5) the tables are created automatically ??? > 6) i have to use JDBC or i can use JPA? > > Escuse me but i am a newbie of AMQ and JMS. > mauro > > > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/ActiveMQ-DB-persistence-tp4685625.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > --001a1134497a8d816905034885b3--