Ankur
can you please tell what env variable is SessionDocHome
and are you mentioning the path correctly please check
Thanks
Hemant
Ankur Jain
<Ankur.Jain@ITSIN To: [EMAIL PROTECTED]
DIA.COM> cc:
Sent by: A Subject: JNDI lookup failing in EJB
mailing list for
Enterprise
JavaBeans
development
<EJB-INTEREST@JAV
A.SUN.COM>
06/19/01 10:54 AM
Please respond to
Ankur.Jain
Hi All,
When I do a JNDI lookup in a normal class it goes through perfectly,
but for the same EJB when I do a lookup from within a EJB it gives a
NameNotFoundException. Does doing a lookup vary when done within a EJB and
when done from a normal class.
I am using IPlanet and below is a code of how I do a lookup in the
EJB, If anybody can give me a clue of what is wrong, I'll be really
thankful..
Object object = null;
InitialContext ctx = new InitialContext();
object = ctx.lookup
("java:comp/env/com.oneloyalty.ejb.SessionDocHome");
EjbHome baseDocHome = (EJBHome) object;
Thanks in advance,
Ankur
===========================================================================
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".