> 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
It is heirarchial. Try to lookup a context for a directory and see if it
works. It doesn't have to allow you to create/destory one, only look it
up.
Also, no problem with RMI registry. Implementing a context on top of a
hashtable is not only doable (though, I won't recommend doing it),
> 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. "
new InitialContext() obviously defaults to something. That something
delivers a compound name. Run it test it, up to you to decide whether to
support it.
The default appears to be left_to_right, using '/' as the separator. My
understanding is that "flat" only applies if there is no separator ('/'
or other) just a simple name (e.g. 'comp').
Of course, 'comp/env' can be a simple name, but then you have to
configure the InitialContext properties with the parsing direction,
create a suitable parser, or report a NotSupportedException.
This might be well specified someplace, I just couldn't find a record of
it. (So much for Acrobat's ability to search the text)
arkin
> 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".
===========================================================================
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".