Hey

Assaf Arkin wrote:
> > True, but if the namespace is flatly implemented, i.e. a simple lookup
> > in a hashtable on everything after the "java:" prefix, then it will
> > fail.
>
> But if you just have a hashtable you're missing all the fun :-)

Agree 100% :-) Doing a hierarchical namespace implementation is lots of
"fun"! Download mine now from http://www.dreambean.com/jnp.html.

> OK, doing JNDI is not fun. But seriously, there is nothing precluding an
> application from doing the following:
>
>   Context ctx;
>
>   ctx = new InitialContext();
>   ctx = (Context) ctx.lookup( "java:comp/env" );
>
> followed by
>
>   ctx.lookup( "myvar" );
>   ctx.lookup( "jdbc/mydb" );

No, but it won't work if the JNDI provider has taken the "easy", yet
allowed  (AFAIK), way out and done it as a flat namespace.

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

Reply via email to