Assaf Arkin wrote:
> I could always count on you to have a lively conversation early at
> night. People are going to hate us when they get their e-mails first
> thing on the morning :)
8-)
> Anyway, the JNDI specs are not the best in the world, but here's what I
> gathered. A federated namespace spans multiple namespaces using compund
> names. For example:
>
> ldap://host/uid=arkin,ou=people
>
> consists of a DNS and DN.
Yup.
> A flat namespace is one that spans a single
> namespace using composite names. For example:
>
> file:/usr/bin
>
> The ENC falls under the second category.
Nope. The above is only "non-federated". It may still be a flat or
hierarchical implementation to support it. For example, the filesystem
could potentially have a hierarchical provider (I say "potentially",
because AFAIK the one from JavaSoft is not), whereas the RMI-registry
provider is flat (and could only have a flat one). Both flat and
hierarchical ones support names such as "/usr/bin", only a hierarchical
one would divide it into the components "", "usr" and "bin".
> By definition all contexts should support Names, a lookup on "" always
> returns the same context. Sub-contexts need not be creatable or
> destructable (e.g. read-only), but they must be retrievable with lookup(
> "ctx" ).
Incorrect. A flat one does not need to support retriveal of subcontexts,
simply because there are none. I now wish to point your attention to the
javadoc of CompoundName, which uses "properties" to direct the parsing:
"Direction for parsing ("right_to_left", "left_to_right", "flat"). If
unspecified, defaults to "flat", which means the namespace is flat with
no
hierarchical structure. "
AFAIK this is the only place in the JNDI docs where the difference
between "flat" and "hierarchical" is defined, but nevertheless, there it
is :-)
> I know the specs are consistent in using "java:comp/env" and
> "file:/usr/bin" and "ldap://host", but aside from this consistency, I
> could not find anything in the specs or API that indicates the contrary
> to the above.
Look closer.
over 'n out.
/Rickard
--
Rickard �berg
@home: +46 13 177937
Email: [EMAIL PROTECTED]
http://www.dreambean.com
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".