Hi Lalit,
i think that both lookup-methods are identical. See also the excerpt of MZ Notes:
A new method, "lookup", has been added to the javax.ejb.EJBContext interface. This method
can be used to lookup the resources or references bound in a bean's JNDI environment naming
context. The method's signature is:
The lookup method internally wraps a call to InitialContext.lookup() so that a developer doesn't
need to additionally learn the JNDI API.
You should be aware that InitialContext will always work, but for EJBContext, you 've to be inside the Container.