JNDI is like a DOS file system. A distributed one...
java: is just like C: it just names a "logical disk" or "namespace" that is
unique.
In the case of java: it also means that it is "your" environment, 2 beans in
the same container calling java: will see different views of the world
Like rickard said it is mandatory in beans to use this, but clients (as we
can tell from the RMH examples :)) also are allowed to use java: namespace
as well, (which makes somewhat sense to me).
I believe that the final interest of java: is Unix like security. If we
pass the client information implicitely then the NamingServer is capable of
doing tests on the credentials that you have set and can return things or
not as you permissions allow. A really rwx approach to the distributed file
system. java: can be a scoped namespace to begin with.
marc
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Rickard �berg
> Sent: Tuesday, August 22, 2000 11:37 PM
> To: jBoss
> Subject: Re: [jBoss-User] More info on configuring Interbase with jboss
>
>
> Hi!
>
> Tai-Hsin Lu wrote:
> > Thx so much for your document..
> > I have been working on db for several days and cant get my
> stateless session bean connnect to db
> > I have fixed the problem now..
> > One of the difficult is what name should I use in order to
> lookup the db source in my ejb
> > Most of the mails which I read all says names like
> "jdbc/myDataSource", which doesnt work
> > But when I change to "java:comp/env/jdbc/myDataSource" it works
> > Can any one tells me whats the difference between these two names
>
> If you read the EJB specification the difference should be clear. You
> specify "jdbc/myDataSource" in the deployment descriptor, and prefix it
> with "java:comp/env" when you use it in your beans.
>
> /Rickard
>
> --
> Rickard �berg
>
> Email: [EMAIL PROTECTED]
> http://www.telkel.com
> http://www.jboss.org
> http://www.dreambean.com
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
>
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]