pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: James Kelty <jamesk@everbase.net>
To: pgsql-admin@postgresql.org
Subject: JDBC and servlet...
Date: Fri, 19 Apr 2002 10:33:06 -0700
Message-ID: <MDEDIKPCLCIKDGEMDJGMIECNCJAA.jamesk@everbase.net> (raw)

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




view thread (4+ messages)  latest in thread

Message-ID: <MDEDIKPCLCIKDGEMDJGMIECNCJAA.jamesk@everbase.net>
Permalink:  ../MDEDIKPCLCIKDGEMDJGMIECNCJAA.jamesk@everbase.net/
Also on:    postgresql.org/message-id/MDEDIKPCLCIKDGEMDJGMIECNCJAA.jamesk@everbase.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: jamesk@everbase.net
  Subject: Re: JDBC and servlet...
  In-Reply-To: <MDEDIKPCLCIKDGEMDJGMIECNCJAA.jamesk@everbase.net>
  References: <MDEDIKPCLCIKDGEMDJGMIECNCJAA.jamesk@everbase.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox