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

Reply via email to