pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Servin <cservin@cromagnon.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Totally weird behaviour in org.postgresql.Driver
Date: Thu, 12 Mar 2009 13:41:59 -0500
Message-ID: <200903121341.59498.cservin@cromagnon.com> (raw)
In-Reply-To: <003001c9a315$a68a9330$f39fb990$@com>
References: <49b7bfef$0$1343$834e42db@reader.greatnowhere.com>
	<491f66a50903120342j67e87c7dob10cfdc23580c8f4@mail.gmail.com>
	<003001c9a315$a68a9330$f39fb990$@com>

On Thursday 12 March 2009 08:22:53 am Peter wrote:
> Obiously I do not need to synchronize the method. the synchronized block
> inside it should work just fine. Was just grasping at straws there.
>
>
>
> I checked out dbcp and c3po (thanks for the pointers!) but none fits my app
> as each user needs to connect with his own credentials.

This was a problem for me as well.  So, I made a factory for returning 
connections from dbcp and made some adjustments to the connection returned 
from the pool, so that our auditing triggers knew the application user  that 
was using the connection.

That way we could get the auditing and use a pool that has hopefully had the 
bugs beaten out of if.  But, that would not work in every situation.


C.


-- 
When I'm on my own I'm in bad company.
                               -- David Bowie



view thread (22+ messages)  latest in thread

Message-ID: <200903121341.59498.cservin@cromagnon.com>
Permalink:  ../200903121341.59498.cservin@cromagnon.com/
Also on:    postgresql.org/message-id/200903121341.59498.cservin@cromagnon.com

 · 

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-jdbc@postgresql.org
  Cc: cservin@cromagnon.com
  Subject: Re: Totally weird behaviour in org.postgresql.Driver
  In-Reply-To: <200903121341.59498.cservin@cromagnon.com>
  References: <49b7bfef$0$1343$834e42db@reader.greatnowhere.com> <491f66a50903120342j67e87c7dob10cfdc23580c8f4@mail.gmail.com> <003001c9a315$a68a9330$f39fb990$@com> <200903121341.59498.cservin@cromagnon.com>

* 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