X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 7B6E311F68C3 for ; Mon, 10 Apr 2006 12:41:38 -0300 (ADT) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 required=5 tests=[none] Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id kHZWVF0vXW3Q for ; Mon, 10 Apr 2006 12:41:16 -0300 (ADT) X-Greylist: delayed 00:29:48.627027 by SQLgrey- Received: from h90152.serverkompetenz.net (webandmailserver.com [81.169.173.201]) by postgresql.org (Postfix) with ESMTP id 73B1B11F6254 for ; Mon, 10 Apr 2006 12:41:05 -0300 (ADT) Received: from h90152.serverkompetenz.net (localhost [127.0.0.1]) by h90152.serverkompetenz.net (Postfix) with ESMTP id 3438F1E8D00 for ; Mon, 10 Apr 2006 17:11:15 +0200 (CEST) Received: from pcmar02 (p54A75D72.dip.t-dialin.net [84.167.93.114]) by h90152.serverkompetenz.net (Postfix) with ESMTP id 3F4861E8CFF for ; Mon, 10 Apr 2006 17:11:14 +0200 (CEST) From: "Markus Riehl" To: Subject: No automatic reconnect after network error Date: Mon, 10 Apr 2006 17:11:15 +0200 Message-ID: <003301c65cb1$038f0830$15b2a8c0@pcmar02> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Scanned: ClamAV using ClamSMTP X-Archive-Number: 200604/76 X-Sequence-Number: 15010 Hi all, JDBC Version: 8.1-405 (Type 3) Postgre SQL Version: 8.1.3 OS: Windows XP I have the PSQL database running on one server, my java application on another server. The java application is a server application that opens = a database connection once at startup time. The server application uses PreparedStatements (threshold=3D0) that are = also created at startup time. After a network error (to test I removed the network cable from the = server where my java application is running for a few seconds), I get the = following error message when using on of the PreparedStatements: org.postgresql.util.PSQLException: An I/O error occured while sending to = the backend. at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:2= 14) at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statemen= t.j ava:437) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc= 2St atement.java:353) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Sta= tem ent.java:257) ... Using MySQL or SAPDB, the JDBC driver is automatically reconnecting to = the database when the connection is up again. Is there a way to use the PSQL driver the same way? How is this problem handled within Connection Pools (used within a = servlet environment)? Is the pool deleting "dead" connections automatically and = is creating new ones? Thanks in advance Markus