Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id D96559FB96D for ; Fri, 20 Apr 2007 17:00:54 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 15827-06 for ; Fri, 20 Apr 2007 17:00:50 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.241]) by postgresql.org (Postfix) with ESMTP id 5EAA09FBB9A for ; Fri, 20 Apr 2007 17:00:49 -0300 (ADT) Received: by an-out-0708.google.com with SMTP id c24so1096712ana for ; Fri, 20 Apr 2007 13:00:48 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=nup5qPrIOQMtCThbfr6hTpFwcCATxhxfo5ab+UAa8c9vRhLOqOSVfXeoitDAWY6Y0E3dZ7cg/xBx7nNtMFWE73ZgUTR7hYPA+IUEXjcZIeCFA/oT2NSWmG4RApagNC4SMNZKhHbKjg9LaY1vBzAzxkr7Lc6icVTZlKIN7PYDehw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=s6iogaOGy9ZOn10hxbYIeelhv8UEyOl14nZLwKhXhHM250IGY78jLrScE83DZ2WBSTxsdm77GX7J0+PQ1uWzXBzk+YeBFp/kBmHmRc9IkEJlT2A9UDWC+16XZqjaOpL1MhKykDYJDQlVruRZTN3qTBIVH76xw5vGL3TNgZa/shY= Received: by 10.114.111.1 with SMTP id j1mr1393773wac.1177099247514; Fri, 20 Apr 2007 13:00:47 -0700 (PDT) Received: by 10.114.88.2 with HTTP; Fri, 20 Apr 2007 13:00:47 -0700 (PDT) Message-ID: <4efe54510704201300i4636c611r88dbb48c96be7270@mail.gmail.com> Date: Fri, 20 Apr 2007 22:00:47 +0200 From: "Bill Middleton" To: pgsql-jdbc@postgresql.org Subject: PGXADataSource does not implement DataSource MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_128649_3927284.1177099247457" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/79 X-Sequence-Number: 16928 ------=_Part_128649_3927284.1177099247457 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello and thanks for for the efforts. I've noticed that your XA implementation does not formally implement javax.sql.DataSource. I felt pretty sure that this was a simple oversight, given that BaseDataSource provides complete compatibility with the DataSource interface. I patched thusly: Index: org/postgresql/ds/common/BaseDataSource.java =================================================================== RCS file: /usr/local/cvsroot/pgjdbc/pgjdbc/org/postgresql/ds/common/BaseDataSource.java,v retrieving revision 1.7 diff -r1.7 BaseDataSource.java 12a13,14 > import javax.sql.DataSource; > 25c27 < public abstract class BaseDataSource implements Referenceable --- > public abstract class BaseDataSource implements Referenceable, DataSource and now Hibernate happily accepts the postgresql XA using JTA. Best regards, Bill Middleton ------=_Part_128649_3927284.1177099247457 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello and thanks for for the efforts.  I've noticed that your XA implementation does not formally implement javax.sql.DataSource.  I felt pretty sure that this was a simple oversight, given that BaseDataSource provides complete compatibility with the DataSource interface.  I patched thusly:

Index: org/postgresql/ds/common/BaseDataSource.java
===================================================================
RCS file: /usr/local/cvsroot/pgjdbc/pgjdbc/org/postgresql/ds/common/BaseDataSource.java,v
retrieving revision 1.7
diff -r1.7 BaseDataSource.java
12a13,14
> import javax.sql.DataSource;
>
25c27
< public abstract class BaseDataSource implements Referenceable
---
> public abstract class BaseDataSource implements Referenceable, DataSource


and now Hibernate happily accepts the postgresql XA using JTA.

Best regards,

Bill Middleton

------=_Part_128649_3927284.1177099247457--