> Nothing, since the LDAP server isn't transactional..
>
> It would be possible to build a JNDI provider on top of EJB for example,
> which would make it transactional. Anyone who have tried? Would be very
> useful to have.
That defies the whole purpose of getting BMP over LDAP :-)
I could build a JDBC driver on top of EJB to get transactional support,
but I think it would make a bit more sense to put it inside the EJB.
It shouldn't be too complex a deal to get a JNDI implementation that is
transactional aware, or an EJB-managed resource. But it has to be
clearly defined first:
* Is the update being done first, then rolledback, or
* Is the update being done only if the transaction commits,
* Should the update occur during prepare, potentially reporting
problems, but always committing, or
* Should the update occur during commit, and prepare would just check
the likelihood of an update suceeding,
* Should the update be localized to a single record, or span any number
of changes
It seems reasonably fair to create a Context that wraps the LDAP
Context, presents update immediately to the caller in the same thread,
but does not perform them against the LDAP server until the actual
commit. This solution does not deal with concurrency at all (but neither
does LDAP) but plays well in a transactional model.
arkin
>
> /Rickard
>
> --
> Rickard �berg
>
> @home: +46 13 177937
> Email: [EMAIL PROTECTED]
> Homepage: http://www-und.ida.liu.se/~ricob684
> Question reality
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff EJB-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
--
____________________________________________________________
Assaf Arkin [EMAIL PROTECTED]
CTO http://www.exoffice.com
Exoffice, The ExoLab Company tel: (650) 259-9796
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".