Hi hemant,
com.oneloyalty.ejb.SessionDocHome is the JNDI name. The path is
correct because when I do a lookup for the same from a normal class file,
it goes through fine..
Do I need to specify InitialContextFactory and the URL_Provider etc
etc..
Thanks in advance.
Ankur
Hemant Arora
<Hemant.Arora@ITS To: [EMAIL PROTECTED]
INDIA.COM> cc:
Sent by: A Subject: Re: JNDI lookup failing in
EJB
mailing list for
Enterprise
JavaBeans
development
<EJB-INTEREST@JAV
A.SUN.COM>
06/19/01 03:24 PM
Please respond to
Hemant.Arora
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".
===========================================================================
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".