Thread: Java 6 support for org.postgresql.ds.PGPoolingDataSource

Java 6 support for org.postgresql.ds.PGPoolingDataSource

From
"Don Pannese"
Date:

Hello all,

 

I am attempting to upgrade from Java 5 to Java 6. When I tried this I found that the org.postgresql.ds.PGPoolingDataSource class is broken because it implements javax.sql.DataSource which in Java 6 now extends (which it does not in Java 5) the java.sql.ComonDataSource and java.sql.Wrapper interfaces (which I find totally ridiculous that Java would break backward compatibility like this). Anyway, my question is: Is there a postgresql jdbc driver that supports Java 6 or do we just have to implement the new interfaces ourselves in the jdbc code and then recompile? I searched the site and could not find anything about Java 6 support.

 

Thanks,

-Don

 

Re: Java 6 support for org.postgresql.ds.PGPoolingDataSource

From
Kris Jurka
Date:

On Mon, 17 Nov 2008, Don Pannese wrote:

> Is there a postgresql jdbc driver that supports Java 6 or do we just
> have to implement the new interfaces ourselves in the jdbc code and then
> recompile? I searched the site and could not find anything about Java 6
> support.
>

Yes, use the JDBC4 driver.

Kris Jurka

Re: Java 6 support for org.postgresql.ds.PGPoolingDataSource

From
"Don Pannese"
Date:
Will do. Thank you!

-----Original Message-----
From: Kris Jurka [mailto:books@ejurka.com]
Sent: Monday, November 17, 2008 5:09 PM
To: Don Pannese
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] Java 6 support for
org.postgresql.ds.PGPoolingDataSource



On Mon, 17 Nov 2008, Don Pannese wrote:

> Is there a postgresql jdbc driver that supports Java 6 or do we just
> have to implement the new interfaces ourselves in the jdbc code and
then
> recompile? I searched the site and could not find anything about Java
6
> support.
>

Yes, use the JDBC4 driver.

Kris Jurka