From: Jeroen Kransen <jfk_75@yahoo.com>
To: pgsql-jdbc@postgresql.org
Subject: PGConnectionPoolDataSource is not a DataSource?
Date: Fri, 17 Feb 2006 02:49:37 -0800 (PST)
Message-ID: <20060217104937.62169.qmail@web31005.mail.mud.yahoo.com> (raw)
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: jfk_75@yahoo.com
Subject: Re: PGConnectionPoolDataSource is not a DataSource?
In-Reply-To: <20060217104937.62169.qmail@web31005.mail.mud.yahoo.com>
References: <20060217104937.62169.qmail@web31005.mail.mud.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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