Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 79421 invoked from network); 13 Sep 2006 23:16:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Sep 2006 23:16:24 -0000 Received: (qmail 91492 invoked by uid 500); 13 Sep 2006 23:16:21 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 91442 invoked by uid 500); 13 Sep 2006 23:16:21 -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 91430 invoked by uid 99); 13 Sep 2006 23:16:21 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Sep 2006 16:16:21 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from ([209.237.227.198:43291] helo=brutus.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1 r(10620)) with ESMTP id 9E/C3-00682-CA098054 for ; Wed, 13 Sep 2006 16:15:03 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CE93A410029 for ; Wed, 13 Sep 2006 23:10:22 +0000 (GMT) Message-ID: <30351304.1158189022828.JavaMail.jira@brutus> Date: Wed, 13 Sep 2006 16:10:22 -0700 (PDT) From: "David Jencks (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Updated: (DAYTRADER-14) Include sql script in the ear and use a gbean to create tables etc In-Reply-To: <19165087.1158188902293.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DAYTRADER-14?page=all ] David Jencks updated DAYTRADER-14: ---------------------------------- Attachment: d-j-plan.xml DAYTRADER-14.patch DAYTRADER-14.patch adds the sql script to the ejb module. d-j-plan.xml is a plan that works for both g-jetty and g-tomcat that uses the DatabaseInitiializationGBean to create the tables and deploys both the app clients. Works on trunk for me. > Include sql script in the ear and use a gbean to create tables etc > ------------------------------------------------------------------ > > Key: DAYTRADER-14 > URL: http://issues.apache.org/jira/browse/DAYTRADER-14 > Project: DayTrader > Issue Type: Improvement > Components: EJB Tier > Affects Versions: 1.2 > Reporter: David Jencks > Attachments: d-j-plan.xml, DAYTRADER-14.patch > > > You can use the DatabaseIntitializationGBean (GERONIMO-2396) in a g. plan and include the sql script in the ejb module so the database will get created if not already present. This is way better than the previous hack of including a pre-built database in the car file. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira