Re: Best Practice for incremental development

From: Mike Mascari <mascarm(at)mascari(dot)com>
To: Kragen Sitaker <kragen+pgsql(at)airwave(dot)com>
Cc: Phil Campaigne <pcampaigne(at)charter(dot)net>, pgsql-general(at)postgresql(dot)org
Subject: Re: Best Practice for incremental development
Date: 2004-01-16 05:47:37
Message-ID: 40077AF9.1010809@mascari.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Kragen Sitaker wrote:

>On Tue, Jan 13, 2004 at 11:22:57AM -0500, Phil Campaigne wrote:
>
>
>>I am developing a java/postgresql application using ant and junit. I
>>want to deploy tested builds along with matching tables with test data
>>in them.
>>
>>What is the best way to deploy the tables and data to postgresql to
>>match a war file?
>>
>>
>
>I don't know what a war file is, but you can deploy tables and data by
>feeding the output of pg_dump to psql.
>
>
A war file is a java web archive that's deployable using a servlet
container like Jakarta Tomcat. It's the Java equivalent of a tar archive
with a web.xml file describing how the web application should be
deployed and how to map URLs to servlet classes. A vendor should be able
to construct a distributable WAR file and sell it as a product, for
instance.

If you know the customer has both PostgreSQL installed and a servlet
container, then, optimally, you could develop a distributable WAR
archive that just drops into the servlet container, initializes the
database schema at the appropriate times, and is ready to run. I don't
know what the standard method of accomplishing that is, since presumable
JDBC connection properties have to be initialized appropriately,
appropriate database privileges must be established, etc. So it seems
like those that are deploying the WAR archive are going to have to
meddle with script outside the context of the servlet container anyway,
including possible editing of pg_hba.conf, as an example...

Mike Mascari

In response to

Browse pgsql-general by date

  From Date Subject
Next Message lnd 2004-01-16 08:39:42 Index space reusable?
Previous Message LitelWang 2004-01-16 05:41:11 check date validity