Subject Re: XADataSource implementation
Author rrokytskyy
> I need
> > XADataSource in my configuration (maybe, not sure though)
>
> Are you sure? Why?

Not sure. :) You probably remember config I had in my mind, but I
will put it here again:

we are developing JCA-compliant persistence manager that in turn uses
JDBC to store data in database. When transaction is working, we only
cache data in memory (faster), and in XAResource.prepare(Xid) we want
to execute corresponding SQL statements using the JDBC connection.

> The JCA interfaces are considerably clearer IMNSHO than the
> XADataSource interfaces. However, it shouldn't be too hard to wrap
> ManagedConnectionFactory with XADataSource and ManagedConnection
> with XAConnection. I'm very curious as to why you need this,
> however.

Probably because it is not clear what happens if I try to allocate
connection from javax.sql.DataSource in prepare(Xid) call. Will it
belong to my transaction? Is it allowed there?

If you think this question is too specific, let's move to private
email communication.

Roman