Sun Java System Application Server Platform Edition 8.1 2005Q2 Update 2 Developer's Guide

ejb-ref

Maps the ejb-ref-name in the corresponding J2EE deployment descriptor file ejb-ref entry to the absolute jndi-name of a resource.

The ejb-ref element is used for the declaration of a reference to an EJB’s home. Applies to session beans or entity beans.

Superelements

sun-web-app (sun-web.xml), ejb (sun-ejb-jar.xml), sun-application-client (sun-application-client.xml)

Subelements

The following table describes subelements for the ejb-ref element.

Table A–41 ejb-ref Subelements

Element  

Required  

Description  

ejb-ref-name

only one 

Specifies the ejb-ref-name in the corresponding J2EE deployment descriptor file ejb-ref entry.

jndi-name

only one 

Specifies the absolute jndi-name of a resource.