Re: An I/O error occured while sending to the backend.

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: An I/O error occured while sending to the backend.
Дата
Msg-id Pine.BSO.4.64.0801110028010.3943@leary.csoft.net
обсуждение исходный текст
Ответ на An I/O error occured while sending to the backend.  (Stef <svb@ucs.co.za>)
Список pgsql-jdbc

On Mon, 7 Jan 2008, Stef wrote:

> I'm using the Connection pool manager of JBoss to control
> the connections to the database. When I restart postgres
> without restarting JBoss as well, I get this error reported in JBoss :
> An I/O error occured while sending to the backend.
>
> The problem is that JBoss never recovers from this , and it's only fixed
> when I restart JBoss. I can understand that this error may happen
> occasionally, but I need to be able to recover from this situation
> without restarting JBoss.
>

JBoss has a check-valid-connection-sql parameter for datasources which
runs every time a connection from a pool is allocated.  If this statement
fails, the connection is discarded and a new connection is opened.  This
should allow recovery from a disappeared database.

Kris Jurka

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

Предыдущее
От: Kris Jurka
Дата:
Сообщение: Re: Patch for Statement.getGeneratedKeys()
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: Deleting LargeObjects as BLOBS