473,396 Members | 1,982 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Best Practice for incremental development

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?
thanks,
Phil
---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ma*******@postgresql.org

Nov 22 '05 #1
3 1779
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.

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Nov 22 '05 #2
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

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ma*******@postgresql.org

Nov 22 '05 #3
On Jan 13, 2004, at 11:22 AM, 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?
thanks,


Evolutionary Database Design, by Martin Fowler:
http://www.martinfowler.com/articles/evodb.html

It's a good read and will probably give you some good ideas.

eric
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

Nov 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: JStrummer | last post by:
I have a question regarding paths and the include() statement in PHP. I develop in a Windows environment and will be publishing to a Linux server. I would like to do the following: 1. Setup my...
131
by: Peter Foti | last post by:
Simple question... which is better to use for defining font sizes and why? px and em seem to be the leading candidates. I know what the general answer is going to be, but I'm hoping to ultimately...
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
136
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
4
by: Thorsten Ottosen | last post by:
Dear all, I work on a major system written in C# in visual studio 2003. Our solution has 10+ projects and all projects are compiled with /incremental. In a C++ world, non-incremental builds...
3
by: Alex Shturm | last post by:
Hi, I am trying to activate incremental link using VC7 (.NET 2003) on a pretty big project (executable size is more than 100Mb, and it gets linked from several dozen of libraries and object...
4
by: Collin Peters | last post by:
I have searched the Internet... but haven't found much relating to this. I am wondering on what the best practices are for migrating a developmemnt database to a release database. Here is the...
3
by: cbrown | last post by:
I am rebuilding an existing application that relies on an SQL DB. The app is a scheduling/employee management program. My question pertains to best practices in dotnet and database. I use a 3...
3
by: mast2as | last post by:
In the same vein as the topic that I started on exception handling ;-) .... If I have read (not all of them though) the documents that you guys pointed me to, the try/throw/catch mechanism should...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.