This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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 ]