Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id CAF02634BC5 for ; Thu, 12 Mar 2009 10:24:11 -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 23130-04 for ; Thu, 12 Mar 2009 10:23:58 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail2.fintrading.com (mail.fintrading.com [195.2.100.100]) by mail.postgresql.org (Postfix) with ESMTP id 81A3A6348D8 for ; Thu, 12 Mar 2009 10:24:01 -0300 (ADT) Received: from chipmunk (unknown [81.198.70.254]) by mail2.fintrading.com (Postfix) with ESMTPA id D7798381138C; Thu, 12 Mar 2009 15:22:54 +0200 (EET) From: "Peter" To: "'Dave Cramer'" Cc: "'Kris Jurka'" , References: <49b7bfef$0$1343$834e42db@reader.greatnowhere.com> <49B7CBB6.5020800@opencloud.com> <49b7ced9$0$1343$834e42db@reader.greatnowhere.com> <002201c9a2f9$edd47510$c97d5f30$@com> <491f66a50903120342j67e87c7dob10cfdc23580c8f4@mail.gmail.com> In-Reply-To: <491f66a50903120342j67e87c7dob10cfdc23580c8f4@mail.gmail.com> Subject: Re: Totally weird behaviour in org.postgresql.Driver Date: Thu, 12 Mar 2009 15:22:53 +0200 Message-ID: <003001c9a315$a68a9330$f39fb990$@com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0031_01C9A326.6A136330" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acmi/05AyQFWltCLQnyU04x018ij+AAFgguQ Content-Language: en-us X-MailScanner-ID: D7798381138C.0E73E X-greatnowhere.com-MailScanner: Found to be clean X-greatnowhere.com-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-6.799, required 6, autolearn=not spam, ALL_TRUSTED -1.80, BAYES_00 -5.00, HTML_MESSAGE 0.00) X-greatnowhere.com-MailScanner-From: peter@greatnowhere.com MailScanner-NULL-Check: 1237468977.79491@mlWBFuk8v1RbhoQg2yd7bA X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=AWL=-0.001, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200903/64 X-Sequence-Number: 19394 This is a multipart message in MIME format. ------=_NextPart_000_0031_01C9A326.6A136330 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit 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. I'll see if I can produce a test case and post it here. From: davecramer@gmail.com [mailto:davecramer@gmail.com] On Behalf Of Dave Cramer Sent: Thursday, March 12, 2009 12:43 PM To: Peter Cc: Kris Jurka; pgsql-jdbc@postgresql.org Subject: Re: [JDBC] Totally weird behaviour in org.postgresql.Driver Peter, Couple things.... do you really need to synchronize twice in every method ??? Have you looked at dbcp or c3po instead of re-inventing the wheel ? Can you supply us with a test case which does exhibit the bug ? ------=_NextPart_000_0031_01C9A326.6A136330 Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable

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. =

 

I’ll see if I can produce a test case and post it = here…

 

From:= davecramer@gmail.com [mailto:davecramer@gmail.com] On Behalf Of = Dave Cramer
Sent: Thursday, March 12, 2009 12:43 PM
To: Peter
Cc: Kris Jurka; pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] Totally weird behaviour in = org.postgresql.Driver

 

Peter,

Couple things.... do you really need to synchronize twice in every = method ???
Have you looked at dbcp or c3po instead of re-inventing the wheel ?

Can you supply us with a test case which does exhibit the bug = ?

------=_NextPart_000_0031_01C9A326.6A136330--