pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bill Middleton <utvikler@gmail.com>
To: books@ejurka.com
To: pgsql-jdbc@postgresql.org
Subject: Fwd: PGXADataSource does not implement DataSource
Date: Sat, 21 Apr 2007 00:07:50 +0200
Message-ID: <4efe54510704201507s6daaf7d6vf0c8cf801952aa4a@mail.gmail.com> (raw)
In-Reply-To: <4efe54510704201505h5aa12fe6m60d2b51e0fcfe714@mail.gmail.com>
References: <4efe54510704201300i4636c611r88dbb48c96be7270@mail.gmail.com>
	<4629234B.8050507@enterprisedb.com>
	<4efe54510704201356i7f5c1d51i9b73b2e186c81b31@mail.gmail.com>
	<46292DCB.1010202@enterprisedb.com>
	<4efe54510704201505h5aa12fe6m60d2b51e0fcfe714@mail.gmail.com>

I accidentally left the list out of this reply.

---------- Forwarded message ----------
From: Bill Middleton <utvikler@gmail.com>
Date: Apr 21, 2007 12:05 AM
Subject: Re: [JDBC] PGXADataSource does not implement DataSource
To: Heikki Linnakangas <heikki@enterprisedb.com>


Heikki wrote:

> I'm not an expert on hibernate or atomikos, but I don't think hibernate
> should ever see the raw PGXADataSource object. Whatever is handling the
> connection pool, either Atomikos or JBoss, should get a connection from
> the XADataSource object, and wrap that in a DataSource implementation of
> it's own. That wrapper object is registered in JNDI, and hibernate gets
> it from there.


Hibernates JTA implementation does use the ordinary usertransaction from
atomikos (or jboss, presumably) as bound in jndi, but it seems to require
the actual datasource to obtain initial information about the db, and
possibly to create table automatically.  If I omit it, I get exceptions for
not supplying a jdbc connection. And indeed, the XADataSource cast to
DataSource  is cached in DataSourceConnectionProvider, its getConnection()
method is called by several internal classes - but nowhere does it specify
an XAConnection or XAResource so....

I guess I'll slink off and test this a bit more, before I conclude that its
stable.


Thanks again,

Bill Middleton

view thread (6+ messages)

Message-ID: <4efe54510704201507s6daaf7d6vf0c8cf801952aa4a@mail.gmail.com>
Permalink:  ../4efe54510704201507s6daaf7d6vf0c8cf801952aa4a@mail.gmail.com/
Also on:    postgresql.org/message-id/4efe54510704201507s6daaf7d6vf0c8cf801952aa4a@mail.gmail.com

 · 

reply

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: utvikler@gmail.com, books@ejurka.com
  Subject: Re: Fwd: PGXADataSource does not implement DataSource
  In-Reply-To: <4efe54510704201507s6daaf7d6vf0c8cf801952aa4a@mail.gmail.com>
  References: <4efe54510704201300i4636c611r88dbb48c96be7270@mail.gmail.com> <4629234B.8050507@enterprisedb.com> <4efe54510704201356i7f5c1d51i9b73b2e186c81b31@mail.gmail.com> <46292DCB.1010202@enterprisedb.com> <4efe54510704201505h5aa12fe6m60d2b51e0fcfe714@mail.gmail.com> <4efe54510704201507s6daaf7d6vf0c8cf801952aa4a@mail.gmail.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