Re: embedding PostgreSQL in a Java application

Поиск
Список
Период
Сортировка
От Tim Farrell
Тема Re: embedding PostgreSQL in a Java application
Дата
Msg-id 5.1.0.14.0.20030314075926.02495ce8@sherlock.laurelnetworks.com
обсуждение исходный текст
Ответ на embedding PostgreSQL in a Java application  (Andres Montiel <linuxlists@chargedideas.com>)
Список pgsql-jdbc
You can do this by using the pg_ctl shell script and calling it to start
the database early in your main method of your class. Then ( still in the
main method ) register a thread with the Java shutdown hook and call pg_ctl
to stop the database during the JVM shutdown. This way the database
is  brought down regardless of how the JVM exits.

Tim

At 12:15 PM 3/14/2003 +0800, Andres Montiel wrote:
>Is it possible to include/embed PostgreSQL in a Java application and
>start PostgreSQL once the program starts? Has anyone done this?
>
>Thanks for any input. :)
>
>- Andres
>
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 6: Have you searched our list archives?
>
>http://archives.postgresql.org


В списке pgsql-jdbc по дате отправления:

Предыдущее
От: J M Okomba
Дата:
Сообщение: Re: Problem with driver
Следующее
От: "Alexey Yudichev"
Дата:
Сообщение: idle in transaction