"persistent" connection in a Servlet

Поиск
Список
Период
Сортировка
От Nikola Milutinovic
Тема "persistent" connection in a Servlet
Дата
Msg-id 001801c18f86$d1ee2780$0a3ea8c0@ev.co.yu
обсуждение исходный текст
Ответы Re: "persistent" connection in a Servlet
Список pgsql-jdbc
Hi all.

One question. Suppose I write a servlet which uses one JDBC connection, initializing it not per-request, but once it is
loaded.Similarly it closes the connection not after the request has been serviced, but only when the servlet is
unloaded.This means that JDBC connection will be opened and held open for a long time, with sporadic interactions. 

What happens if I shutdown the database, while JDBC connection is open and bring it up again? Will it try to reconnect
ordo I have to check for status? 

Nix.

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

Предыдущее
От: Peter Adamek
Дата:
Сообщение: SOLVED: Problem with connecting to postgres using JDBC with JSP, but not JDBC with Java
Следующее
От: "Mihai Gheorghiu"
Дата:
Сообщение: Re: Connection pooling