Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

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

From: Altaf Malik <mmalik_altaf(at)yahoo.com>
Date: Mon Jan 07 2008 - 12:40:54 EST


This is because when your database is down, all the 'connected' instances of Connection become invalid. Since pooled connection is created once, it should be restarted on each database restart. This is possible either by restarting the JBoss, or restarting the Datasource in jboss by the using JMX console.   http://www.onjava.com/pub/a/onjava/2001/07/16/jboss.html?page=last&x-showcontent=text

  You'll have to do something. It'll not re-connect automatically.    

  Regards,
  Altaf Malik
  EnterpriseDB
  www.enterprisedb.com       

Stef <svb@ucs.co.za> wrote:
  Hi all,

I'm using jboss 4.0.2 and j2sdk version 1.5.0_11-b03 connecting to postgresql 8.1.4 using the jdbc3 postgres driver.

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.

Does anyone have any idea what I can do?

Do you need help?X

Kind Regards
Stefan

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings        

Never miss a thing. Make Yahoo your homepage. Received on Mon Jan 7 12:42:41 2008

This archive was generated by hypermail 2.1.8 : Wed Jun 18 2008 - 23:42:13 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library