Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 2EC0863416D for ; Sun, 15 Mar 2009 07:28:20 -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 55381-01 for ; Sun, 15 Mar 2009 07:28:11 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by mail.postgresql.org (Postfix) with ESMTP id D7AE7635408 for ; Sun, 15 Mar 2009 04:22:09 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.14.3/8.14.3) with ESMTP id n2F7M6wV005638 for ; Sun, 15 Mar 2009 04:22:06 -0300 (ADT) (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.14.3/8.14.3/Submit) id n2F7F2de096651 for pgsql-jdbc@postgresql.org; Sun, 15 Mar 2009 04:15:02 -0300 (ADT) (envelope-from news) From: "Peter" X-Newsgroups: pgsql.interfaces.jdbc References: <49b7bfef$0$1343$834e42db@reader.greatnowhere.com> <491f66a50903120342j67e87c7dob10cfdc23580c8f4@mail.gmail.com> <003001c9a315$a68a9330$f39fb990$@com> <200903121341.59498.cservin@cromagnon.com> Subject: Re: Totally weird behaviour in org.postgresql.Driver Date: Sun, 15 Mar 2009 09:10:31 +0200 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-RFC2646: Format=Flowed; Original Lines: 21 Message-ID: <49bca9e8$0$1341$834e42db@reader.greatnowhere.com> X-Complaints-To: usenet@greatnowhere.com To: pgsql-jdbc@postgresql.org 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/77 X-Sequence-Number: 19407 >> 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. Thanks for sharing the tip! What adjustments exactly did you have to make? I just make every user to log on with different PG username. Are there any other options? Peter