Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 559DD632969 for ; Thu, 12 Mar 2009 15:46:43 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 05302-09 for ; Thu, 12 Mar 2009 15:46:39 -0300 (ADT) X-Greylist: delayed 00:05:45.033456 by SQLgrey-1.7.6 Received: from bedrock.cromagnon.com (smtp.cromagnon.com [170.215.19.8]) by mail.postgresql.org (Postfix) with ESMTP id 344BD630861 for ; Thu, 12 Mar 2009 15:46:38 -0300 (ADT) Received: from [192.168.6.187] (mail.mpaygateway.com [209.98.143.247]) (authenticated bits=0) by bedrock.cromagnon.com (8.14.0/8.14.0) with ESMTP id n2CIesxC004570 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 12 Mar 2009 13:40:56 -0500 From: Craig Servin Reply-To: cservin@cromagnon.com Organization: Cro-magnon To: pgsql-jdbc@postgresql.org Subject: Re: Totally weird behaviour in org.postgresql.Driver Date: Thu, 12 Mar 2009 13:41:59 -0500 User-Agent: KMail/1.9.10 References: <49b7bfef$0$1343$834e42db@reader.greatnowhere.com> <491f66a50903120342j67e87c7dob10cfdc23580c8f4@mail.gmail.com> <003001c9a315$a68a9330$f39fb990$@com> In-Reply-To: <003001c9a315$a68a9330$f39fb990$@com> X-MailKey: craigkey MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903121341.59498.cservin@cromagnon.com> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-3.0 (bedrock.cromagnon.com [206.223.39.5]); Thu, 12 Mar 2009 13:40:56 -0500 (CDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200903/65 X-Sequence-Number: 19395 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