[Firebird] XAResource and TransactionManager with JayBird, LDAP

From: Lukasz Kowalczyk (lukasz_at_wa.home.pl)
Date: 12/15/03


Date: 14 Dec 2003 16:11:45 -0800

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?

-- 
Lukasz Kowalczyk


Relevant Pages

  • Re: Right use for JTA transactions?
    ... There are several ways of improving transactionality of your LDAP ... Start a JTA transaction ... On the LDAP side,pick up the JMS message and process it. ... recommend Lee's expertise as a DBMS expert with many years of ...
    (comp.lang.java.programmer)
  • Re: Right use for JTA transactions?
    ... > However, I also have lots of data in LDAP, IMAP, and the filesystem. ... > more general transaction scheme, covering a complete request that may ... XAResource for a DBMS, I might be able to offer some aid. ...
    (comp.lang.java.programmer)
  • Re: [Firebird] XAResource and TransactionManager with JayBird, LDAP
    ... > I need to access two separate databases within one ... One of them is Firebird 1.0, the other is any LDAP ... > database (I know most LDAPs are not transactional, ...
    (comp.lang.java.databases)
  • Re: [Firebird] XAResource and TransactionManager with JayBird, LDAP
    ... One of them is Firebird 1.0, the other is any LDAP ... >> database (I know most LDAPs are not transactional, ... >> to be able to retrieve XAConnection instances? ... I don't also know if I should use the ManagedConnections directly or are ...
    (comp.lang.java.databases)
  • Re: Right use for JTA transactions?
    ... I don't know LDAP, but it would be shame if noone provided a transactional capability for it. ... I'm not sure how this is handled in general with JDBC, or XAResources in general. ... Do JDBC driver classes have some hook that when they're instantiated, they check for a JTA transaction, and register themselves there if one exists? ... How does the transaction know that I grabbed the Folder object of the parent? ...
    (comp.lang.java.programmer)