Received: from mail.theashlandagency.com (unknown [208.1.80.60]) by postgresql.org (Postfix) with SMTP id F04E047510B for ; Fri, 19 Apr 2002 13:33:47 -0400 (EDT) Received: from blackmax ([192.168.10.111]) by mail.theashlandagency.com (8.11.6/8.11.6) with SMTP id g3JHXgH32264 for ; Fri, 19 Apr 2002 10:33:42 -0700 From: "James Kelty" To: Subject: JDBC and servlet... Date: Fri, 19 Apr 2002 10:33:06 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Archive-Number: 200204/184 X-Sequence-Number: 4072 We seem to be having an issue with the JDBC driver, Resin 2.0.5 servlet engine, and/or postgres 7.1.2. Basically what happens is this. In the Java Servlet code, the programmers are making an explicit close connection call to the database through the JDBC driver (As they should). Now! When the code us run from the command line, instead of through the servlet engine (Resin 2.0.5), everything works fine. The connection is made to the database, the SQL queries are run, the output is taken, and the connection to the DB is closed. But! When run through the servlet engine, the connection is never dropped, and we end up with these stale connections to the DB, and eventually, we cannot connect, since the older connections are never closed. Same code, same JVM, same database, but Resin sits in the middle. Resin isn't really doing anything other than passing the HTML output to Apache. I am also posting this to caucho.com incase it is a Resin issue, but if anyone has had this problem before, all help would be appreciated very much. Thank you! -James James Kelty Sr. Unix Systems Administrator Everbase Systems 541.488.0801 jamesk@everbase.net