For EJB 2.0-compliant beans, the EJB local reference element declares a reference to another enterprise bean's local home interface.
This is the JNDI name that the servlet code uses to get a reference to the enterprise bean. The following example illustrates how this element is specified in the deployment descriptor:
<ejb-ref-name>ejb/Payroll</ejb-ref-name>
This can include any information that the EJB archive-file producer wants to provide to the consumer of the EJB archive file.
The value of the link element must be the EJB name of an enterprise bean in the same web-application package. The following example illustrates how this element is specified in the deployment descriptor:
<ejb-link>EmployeeRecord</ejb-link>