Then the bean will be bound to the java:comp/env/someReferenceNameToTheEJB
So your lookup code will be:
Here's an extract from the web.xml dtd which has an explanation for the same:
The ejb-ref-name element contains the name of an EJB reference. The EJB reference is an entry in the web application's environment and is relative to the java:comp/env context. The name must be unique within the web application.
[ July 26, 2006: Message edited by: jaikiran pai ]