This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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 ]