in ejb the registration of beans is done through jndi --- it is done by the
conatiner and is transparent to the programmer. the name correspoding to
which ur object gets bound to the name service is supplied by u in the DDs.
and in ejb 1.1 all resource like datasource etc are supposed to be taken
from the name service --- so the following code
InitialContext ic = new InitialContext();
DataSource ds = (DataSource) ic.lookup(dbName);
HTH
Anamitra
-----Original Message-----
From: Telmo S� [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 05, 2000 8:56 AM
To: [EMAIL PROTECTED]
Subject: Jndi in EJB
Hello all!
I would like to know how does the name registration works in EJB.
I have been looking to the AccountEJB example from the j2eeri and the only
thing that is done there is:
InitialContext ic = new InitialContext();
DataSource ds = (DataSource) ic.lookup(dbName);
In the JNDI tuturial examples they always set a factory and the reach out
the service provider.
In EJB things seem to happen magically, so to speek!!
Thank you for any lights on the matter.
Telmo
===========================================================================
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".