I think it is even simpler than that. You are confusing LDAP for JNDI.

LDAP is a directory service that binds textual or binary data to a named
context tree. JDNI is a naming service the provides Objects that are bound
to a named context tree. Said Objects include DirContext's which provide
attribute functionality. JNDI dishes up LDAP via a "service provider".

The InitialContext that you get from JNDI in an application server does not
have to represent directory data in any form. It can simply bind contexts in
the tree, and dish up any object it wishes in response to a lookup. In other
words, the Object that it dishes up does not necessarily have to be conducive
to being stored externally, such as in LDAP.

Handles might blur that a little, since you could conceivably obtain an EJB
handle, and then serialize that Handle into an LDAP directory server.

HTH,
tim.

> I think that a reason that app servers don't let you do that is due to how
> they implement
> propagating security contexts, "java:comp/env", etc etc. Maybe I am wrong.
> It also depends on what references you are dealing with.
>
> Dion
>
> -----Original Message-----
> From: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]]On Behalf Of Maliyackel, Anup Kumar
> (CTS)
> Sent: Thursday, February 15, 2001 9:39 PM
> To: [EMAIL PROTECTED]
> Subject: LDAP with EJB
>
>
> Hi all
>
> Can I use an LDAP directory to store EJB references instead of the
> proprietory naming services of the app servers?
>
> How do I do this?
>
> Regards
> Anup

===========================================================================
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".

Reply via email to