7
75blured
Hi,
Do you know if there is any way to use transaction between a RDBMS
backend like Oracle or MySql & an OpenLDAP directory ? Indeed, I've got
a process which make some updates on Database1 then on LDAP then on
Database2. So, if the LDAP update fails then the Database1 data should
be rollbacked. And if the Database2 fails the ldap update should be
rollbacked.
The commit should be done only if DB1, LDAP and DB2 updates are OK. So,
it really looks like 2PC transaction. However, the fact is the
transactions are supported only on RDBMS or JMS queues. The LDAP does
not support transactions of that sort.
I've looked on forums however don't find any solutions. I found the
ldapjdbc bridge driver from Novell / openLDAP, however it doesn't
support transaction at all cause it wraps a LDAPConnection from JLDAP
which wrap a connection from standard LDAP which doesn't natively
support those transactions.
Another clue is to develop a XAResource by hand, but this seems
overcomplicated.
Does anybody here already have done this stuff ?
Regards,
blured75.
Do you know if there is any way to use transaction between a RDBMS
backend like Oracle or MySql & an OpenLDAP directory ? Indeed, I've got
a process which make some updates on Database1 then on LDAP then on
Database2. So, if the LDAP update fails then the Database1 data should
be rollbacked. And if the Database2 fails the ldap update should be
rollbacked.
The commit should be done only if DB1, LDAP and DB2 updates are OK. So,
it really looks like 2PC transaction. However, the fact is the
transactions are supported only on RDBMS or JMS queues. The LDAP does
not support transactions of that sort.
I've looked on forums however don't find any solutions. I found the
ldapjdbc bridge driver from Novell / openLDAP, however it doesn't
support transaction at all cause it wraps a LDAPConnection from JLDAP
which wrap a connection from standard LDAP which doesn't natively
support those transactions.
Another clue is to develop a XAResource by hand, but this seems
overcomplicated.
Does anybody here already have done this stuff ?
Regards,
blured75.