Re: Does derby have an embedded Mode like Derby ?

From: "Bayless Kirtley" <bkirt(at)cox(dot)net>
To: <pgsql-general(at)postgresql(dot)org>, "Thomas Kellerer" <spam_eater(at)gmx(dot)net>
Subject: Re: Does derby have an embedded Mode like Derby ?
Date: 2009-08-04 14:44:35
Message-ID: B6FCAE1ACB83447087CCD3BDC8078BC9@dell2400
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> Paul Taylor, 04.08.2009 15:48:
>> Thats a shame, I wanted to write junit test for a java program that
>> queried a database, requiring a full database to be available for unit
>> tests is not really an environment I want to have.
>
> Well if you want to test the database, you will need a full database.
>
> But you can easily setup and start a Postgres server through a batch
> file/shell script. I have a small batch file that simply uses the binary
> ZIP distribution to run initdb and create the initial databases. We are
> using this to bundle Postgres e.g. with a Tomcat web application.
> You don't really need to run an installer and/or create registry entries
> (for windows). This would then resemble more the Derby network server
> setup.
>
> Thomas
>
>
Of course you can always use Derby for testing the Postgres later. I have
found HSQLDB to be closer to Postgres than Derby is. I do seem to recall the
Netbeans group recommends using sever mode during development then switch to
imbedded for distribution. I have done it both ways with equal success and
similar efforts.

Bayless

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Abraham, Danny 2009-08-04 14:48:36 InitDB 8.3.7 fails on Windows - Failed system call was MapViewOfFileEx
Previous Message Bill Moran 2009-08-04 14:36:08 Re: Does derby have an embedded Mode like Derby ?