Re: [Firebird] XAResource and TransactionManager with JayBird, LDAP
From: Lee Fesperman (firstsql_at_ix.netcom.com)
Date: 12/15/03
- Previous message: NOBODY: "searching fast localhost-optimized [jni] jdbc driver"
- In reply to: Lukasz Kowalczyk: "[Firebird] XAResource and TransactionManager with JayBird, LDAP"
- Next in thread: Lukasz Kowalczyk: "Re: [Firebird] XAResource and TransactionManager with JayBird, LDAP"
- Reply: Lukasz Kowalczyk: "Re: [Firebird] XAResource and TransactionManager with JayBird, LDAP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 15 Dec 2003 01:04:24 GMT
Lukasz Kowalczyk wrote:
>
> I need to access (and update) two separate databases within one
> transaction. One of them is Firebird 1.0, the other is any LDAP
> database (I know most LDAPs are not transactional, transaction on LDAP
> side will be emulated).
>
> I know I need to implement a transaction manager but in order for this
> to work I need to retrieve an XAConnection not an ordinary
> java.sql.Connection from the JDBC driver because I have to invoke
> Transaction.enlistResource(XAResource).
>
> The question is this - how should I use Firebird's JDBC driver
> (JayBird) to be able to retrieve XAConnection instances?
If Firebird provides XA through Java, it should have an implementation of
javax.sql.XADataSource (perhaps, JCA also). XADataSource has getXAConnection() methods.
-- Lee Fesperman, FirstSQL, Inc. (http://www.firstsql.com) ============================================================== * The Ultimate DBMS is here! * FirstSQL/J Object/Relational DBMS (http://www.firstsql.com)
- Previous message: NOBODY: "searching fast localhost-optimized [jni] jdbc driver"
- In reply to: Lukasz Kowalczyk: "[Firebird] XAResource and TransactionManager with JayBird, LDAP"
- Next in thread: Lukasz Kowalczyk: "Re: [Firebird] XAResource and TransactionManager with JayBird, LDAP"
- Reply: Lukasz Kowalczyk: "Re: [Firebird] XAResource and TransactionManager with JayBird, LDAP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|