| From: | "Bill Middleton" <utvikler(at)gmail(dot)com> |
|---|---|
| To: | pgsql-jdbc(at)postgresql(dot)org |
| Subject: | PGXADataSource does not implement DataSource |
| Date: | 2007-04-20 20:00:47 |
| Message-ID: | 4efe54510704201300i4636c611r88dbb48c96be7270@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-jdbc |
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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Kris Jurka | 2007-04-20 20:26:43 | Re: PGXADataSource does not implement DataSource |
| Previous Message | Kris Jurka | 2007-04-20 15:07:23 | Re: Poor addBatch performance. Why dosn't it use copy ? |