X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 673199DC9D4 for ; Fri, 17 Feb 2006 06:49:37 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 92390-06 for ; Fri, 17 Feb 2006 06:49:39 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from web31005.mail.mud.yahoo.com (web31005.mail.mud.yahoo.com [68.142.200.168]) by postgresql.org (Postfix) with SMTP id DAADA9DCACD for ; Fri, 17 Feb 2006 06:49:34 -0400 (AST) Received: (qmail 62171 invoked by uid 60001); 17 Feb 2006 10:49:37 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=RXwW6vLI/I2BIy4SRdnqDR8iHa2Cz6JF9mpcyg3qK+Vw8Z8QSVaqv3IjbVd2pJy8e7Y9d4Cw4ma6yGRngL7H2BeeohdJdTwymiFHUZrpy26GUGxJiXVVdd1vnfcfD08JZ0G1QBKNi09Ytgqeaf6RktYBf1h4LiaBFFvR2IQCKz8= ; Message-ID: <20060217104937.62169.qmail@web31005.mail.mud.yahoo.com> Received: from [83.98.238.172] by web31005.mail.mud.yahoo.com via HTTP; Fri, 17 Feb 2006 02:49:37 PST Date: Fri, 17 Feb 2006 02:49:37 -0800 (PST) From: Jeroen Kransen Subject: PGConnectionPoolDataSource is not a DataSource? To: pgsql-jdbc@postgresql.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-897404504-1140173377=:61930" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=2.304 required=5 tests=[DNS_FROM_RFC_ABUSE=0.479, DNS_FROM_RFC_WHOIS=0.879, HTML_10_20=0.945, HTML_MESSAGE=0.001] X-Spam-Score: 2.304 X-Spam-Level: ** X-Archive-Number: 200602/129 X-Sequence-Number: 14726 --0-897404504-1140173377=:61930 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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. --0-897404504-1140173377=:61930 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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. --0-897404504-1140173377=:61930--