Hi,
The problem is that the persistent support must be "transaction aware",
which is not the case of most LDAP implementations, and more,
it must be XA aware, so that transactions can be handled by the
transaction manager of the EJB server.
Unless your LDAP support does not provide transactions,
I do not see an easy way to implement what you
describe.
Regards,
François
"Mantri, Mr. Ramesh" wrote:
> Philippe and all,
> I am investigating into a problem that involves
> transactions. I am a newbie to EJB and transactions.
> So I request a little help.
>
> >From what I read about "Flat Transactions", for
> persistent data stored in a DB, EJB commit/rollback
> involves calling commit on the underlying DB or
> lack of it.
>
> What if the underlying data store is say a LDAP Directory
> Server? In our project, we are storing some essential
> data in a LDAP directory server and perform all possible
> operations on this data such as insertion/modification/
> retrieval/deletion etc.
>
> The problems here are mainly of Atomicity and
> Machine/Network failure and not so much of concurrent
> updates, due to the nature of operations involved. Let me
> give an example. Ours is a Java application that accesses
> LDAP directory server through JNDI. Suppose the user
> has requested a certain operation. This might in turn
> involve invoking a series of operations on LDAP through
> JNDI. What if the host/network fails after a few of these
> operations are completed? We have identified situations
> where the results could be disastrous.
>
> Suppose we decide to provide these operations through
> a Session (possibly stateless) Bean, does EJB provide
> any help in implementing transactions? Or do we have to
> provide our own solution. In the latter case, it might
> even be better for us not to make use of beans due to
> the threading issues involved. Please advise.
> sincerely,
> Ramesh Mantri
> ----
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body of the message "unsubscribe jonas-users".
> For general help, send email to [EMAIL PROTECTED] and
> include in the body of the message "help".
--
==================================================================
Francois EXERTIER Evidian (Groupe Bull)
1, rue de Provence, BP 208, 38432 Echirolles cedex, FRANCE
mailto:[EMAIL PROTECTED]
http://www.evidian.com/jonas http://www.objectweb.org/jonas
Tel: +33 (0)4 76 29 71 51 - Fax: +33 (0)4 76 29 77 30
==================================================================
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".