Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 56141 invoked from network); 6 Jul 2005 06:35:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Jul 2005 06:35:48 -0000 Received: (qmail 34975 invoked by uid 500); 6 Jul 2005 06:35:47 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 34848 invoked by uid 500); 6 Jul 2005 06:35:45 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Users List" Reply-To: "Apache Torque Users List" Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 34835 invoked by uid 99); 6 Jul 2005 06:35:45 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2005 23:35:45 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [194.175.229.106] (HELO mail.seitenbau.net) (194.175.229.106) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2005 23:35:44 -0700 Received: from [195.127.188.18] (helo=www.seitenbau.net) by router1.seitenbau.net with esmtp (Exim 4.43) id 1Dq3VP-0002tl-PA for torque-user@db.apache.org; Wed, 06 Jul 2005 08:35:35 +0200 In-Reply-To: Subject: RE: [torque newbie] Torque in source tree of web app? To: "Apache Torque Users List" X-Mailer: Lotus Notes Release 6.0 September 26, 2002 Message-ID: From: Thomas Fischer Date: Wed, 6 Jul 2005 08:35:35 +0200 X-MIMETrack: Serialize by Router on www/seitenbau(Release 6.5.1|January 21, 2004) at 06.07.2005 08:35:34 AM MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, the usual organisation is like that: - put torque.jar and the jar for the database driver into WEB-INF/lib - I tend not to include the source files into the web application itself, but into an extra source folder outside of the web app. Reason is that one does not need the sources for running the app, so why would one want to increase the application size by including the souces ? - the WEB-INF directory is really the place for the configuration files. I usually create a subfolder WEB-INF/config and put the configuration files there. In my opinion, the only real alternative is to put the configuration files into some fixed path on the server (like /etc/sysconfig/), but whether this is desirable or not depends on many things. For the beginning I would recommend WEB-INF/config. - I would not include maven in the web app. Build the web application from outside, as you suggested, and hand out the db scripts. There is too much which could go wrong if things are not set up as you think they might (or should) be, e.g. the database user used to access the database later might have not the permission to create tables etc. Thomas "Scrut Inizer" schrieb am 05.07.2005 17:35:44: > Let's assume I want to write a web-application using Torque (and other > libraries). > How do I organize the tree now? Where do I put everything? > > I mean: > I have > > webappname > /META_INF > /WEB-INF > /classes > /lib > /src > > Now I assume I put the torque-3.1.1.jar into /web-inf/lib, right? > But where do I place all those configuration files? > I really don't want them anywhere in the source or class folders. There must > be a way where I can keep those config files (the ones torque and maven use, > resource bundles, logger configurations and so on) away from the web-inf > dir. Is meta-inf meant for that? > But then I assume that torque wouldnt work anymore. > > And where do I place the db driver? > > Would I include maven so that the web-app can automatically build the db? Or > would I rather do a "maven torque" once, then compile the sources and > deliver a .war plus a db-create script that the user has to manually execute > during the installation process of the web-app? > > Are there any conventions for all of this? I assume there must be because > this seems like a trivial question to me that experienced developers handle > daily without thinking. > > Thanks > > scrut > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org > For additional commands, e-mail: torque-user-help@db.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org