Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 862469FBA39 for ; Fri, 20 Apr 2007 17:32:30 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 79600-07 for ; Fri, 20 Apr 2007 17:32:23 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by postgresql.org (Postfix) with ESMTP id 0E4DF9FB27D for ; Fri, 20 Apr 2007 17:32:25 -0300 (ADT) Received: by ug-out-1314.google.com with SMTP id k3so793911ugf for ; Fri, 20 Apr 2007 13:32:24 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=Ae/elWdz13m1lgIQGWmKKbbN+Ie6trnknSavegzace+OxhpPuyx2UAt4LDRIQRtxahjgoiOc8AfEyS+LSUcX3GTgJKZQY/uF1r79PY8Lczd6o1bU9/a849x0PTRN6w9kA8h2m8LDQ71FbA12DUVQ0CdJ/+1RPF+JCOFREPqP6sA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=LygVHdu6Wyip5eYzKxcRQFHOr7FFSFMo8BcK0soYvRNDzuL4ppOi1ld6LHqybbKsIv15BmJ0rns7jdbgLSPWFBbf9OAjiE0JbYhszV9UovpRRbCLgSGZpLt43TZd6raMD/bvQpcpuLhyCIdl+Tx4Z8xCJBpS09Ei0O5AmpYiMc8= Received: by 10.82.134.12 with SMTP id h12mr5264941bud.1177101144212; Fri, 20 Apr 2007 13:32:24 -0700 (PDT) Received: from ?192.168.1.34? ( [82.20.19.199]) by mx.google.com with ESMTP id c22sm1093549ika.2007.04.20.13.32.20; Fri, 20 Apr 2007 13:32:22 -0700 (PDT) Message-ID: <4629234B.8050507@enterprisedb.com> Date: Fri, 20 Apr 2007 21:32:11 +0100 From: Heikki Linnakangas User-Agent: Icedove 1.5.0.8 (X11/20061116) MIME-Version: 1.0 To: Bill Middleton CC: pgsql-jdbc@postgresql.org Subject: Re: PGXADataSource does not implement DataSource References: <4efe54510704201300i4636c611r88dbb48c96be7270@mail.gmail.com> In-Reply-To: <4efe54510704201300i4636c611r88dbb48c96be7270@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/81 X-Sequence-Number: 16930 Bill Middleton wrote: > 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: I'm not sure that's a smart a smart thing to do. I don't think there's a requirement for XADataSource implementations to implement DataSource as well. If that was the case, surely XADataSource interface would inherit DataSource to enforce that. If we declare that PGXADataSource implements DataSource, then one can erroneously configure the container to use PGXADataSource in normal DataSource-mode. In fact I suspect that's the case in your environment as well. Can you provide a simple test case involving Hibernate so that I can try this out myself? What's in your hibernate config file? -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com