pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedPGConnectionPoolDataSource is not a DataSource?
2+ messages / 2 participants
[nested] [flat]
* PGConnectionPoolDataSource is not a DataSource?
@ 2006-02-17 10:49 Jeroen Kransen <jfk_75@yahoo.com>
0 siblings, 1 reply; 2+ messages in thread
From: Jeroen Kransen @ 2006-02-17 10:49 UTC (permalink / raw)
To: pgsql-jdbc
I'm trying to use the PostgreSQL JDBC driver in an Orion AS environment with JTA and a JNDI bound PGConnectionPoolDataSource. I'm getting a ClassCastException, because Orion apparently tries to cast my PGConnectionPoolDataSource to a DataSource. The Oracle JDBC driver works, since the OracleConnectionPoolDatasource extends the OracleDataSource, which itself implements DataSource. javax.sql.PooledDataSource itself does not extend DataSource, and maybe there is a very good reason for this. But PGConnectionPoolDataSource extends BaseDataSource, which does not implement DataSource. I'm wondering why, because all its methods seem to be there. If anyone has a setup op Orion combined with PostgreSQL and JTA/JNDI, I'll be interested to hear.
---------------------------------
Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: PGConnectionPoolDataSource is not a DataSource?
@ 2006-02-17 18:50 Kris Jurka <books@ejurka.com>
parent: Jeroen Kransen <jfk_75@yahoo.com>
0 siblings, 0 replies; 2+ messages in thread
From: Kris Jurka @ 2006-02-17 18:50 UTC (permalink / raw)
To: Jeroen Kransen <jfk_75@yahoo.com>; +Cc: pgsql-jdbc
On Fri, 17 Feb 2006, Jeroen Kransen wrote:
> I'm trying to use the PostgreSQL JDBC driver in an Orion AS environment
> with JTA and a JNDI bound PGConnectionPoolDataSource. I'm getting a
> ClassCastException, because Orion apparently tries to cast my
> PGConnectionPoolDataSource to a DataSource.
Are you sure you should be using PGConnectionPoolDataSource instead of
PGPoolingDataSource?
Kris Jurka
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2006-02-17 18:50 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-02-17 10:49 PGConnectionPoolDataSource is not a DataSource? Jeroen Kransen <jfk_75@yahoo.com>
2006-02-17 18:50 ` Kris Jurka <books@ejurka.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox