Re: Data Source

From: Dave Cramer <Dave(at)micro-automation(dot)net>
To: Chris Malan <malan2000(at)optusnet(dot)com(dot)au>
Cc: Pgsql-Jdbc <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Data Source
Date: 2003-03-06 13:36:06
Message-ID: 1046957765.1197.5.camel@inspiron.cramers
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Chris,

The XADataSource is not supported by the driver because postgres doesn't
support two phase commits.

DAve
On Wed, 2003-03-05 at 23:02, Chris Malan wrote:
> Hi All,
>
> I'm doing a ejb tutorial that works with a server called Blazix.
>
> I now have to configure a datasource. Blazix wants the driver to implement
> javax.transaction.xa.XAResource
>
> >From searching the archives it seems that what is in pgjdbc2.jar does not. Is
> that correct? I'm using PostgreSQL 7.2.1.
>
> Now I'm supposed to write a wrapper class that implements a certain interfce
> that looks like this:
>
> public interface JdbcResourceFactory
> {
> javax.sql.XADataSource getXADataSource(
> String jndi,
> Hashtable props )
> throws SQLException;
> javax.sql.ConnectionPoolDataSource getConnectionPoolDataSource(
> String jndi,
> Hashtable props )
> throws SQLException;
> javax.sql.DataSource getDataSource(
> String jndi,
> Hashtable props )
> throws SQLException;
> String getDriverManagerClass( String jndi, Hashtable props )
> throws SQLException;
> String getUrl( String jndi, Hashtable props ) throws SQLException;
> }
>
> I'm left open-mouthed in the starting blocks.
>
> Is there anybody out there with an idea what to do?
>
> Thanks very much.
--
Dave Cramer <Dave(at)micro-automation(dot)net>

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Carl Olivier 2003-03-06 13:39:03 Re: SQL Sessions and the DROP DATABASE command
Previous Message Dave Cramer 2003-03-06 13:33:35 Re: SQL Sessions and the DROP DATABASE command