EjbRef
The ejb-ref element is used for the declaration of a reference to an enterprise bean's home. The declaration consists of an optional description; the EJB reference name used in the code of the referencing application client; the expected type of the referenced enterprise bean; the expected home and remote interfaces of the referenced enterprise bean; and an optional ejb-link information. The optional ejb-link element is used to specify the referenced enterprise bean.
Attributes Summary
name The ejb-ref-name element contains the name of an EJB reference. type The ejb-ref-type element contains the expected type of the referenced enterprise bean. home The home element contains the fully-qualified name of the enterprise bean's home interface. remote The remote element contains the fully-qualified name of the enterprise bean's remote interface. link The ejb-link element is used in the ejb-ref element to specify that an EJB reference is linked to an enterprise bean in the encompassing J2EE Application package. description The description element is used by the ejb-jar file producer to provide text describing the parent element. /linkedEJB
Attribute Details
name
The ejb-ref-name element contains the name of an EJB reference. This is the JNDI name that the servlet code uses to get a reference to the enterprise bean.Example: <ejb-ref-name>ejb/Payroll</ejb-ref-name>
Data type: String
Default value: unspecified
type
The ejb-ref-type element contains the expected type of the referenced enterprise bean. The ejb-ref-type element must be one of the following:<ejb-ref-type>Entity</ejb-ref-type><ejb-ref-type>Session</ejb-ref-type>
Data type: EjbRefType
Default value: unspecified
Allowed Values: Session Entity
home
The home element contains the fully-qualified name of the enterprise bean's home interface.Example: <home>com.aardvark.payroll.PayrollHome</home>
Data type: String
Default value: unspecified
remote
The remote element contains the fully-qualified name of the enterprise bean's remote interface.
Data type: String
Default value: unspecified
link
The ejb-link element is used in the ejb-ref element to specify that an EJB reference is linked to an enterprise bean in the encompassing J2EE Application package. The value of the ejb-link element must be the ejb-name of an enterprise bean in the same J2EE Application package. Example: <ejb-link>EmployeeRecord</ejb-link>
Data type: String
Default value: unspecified
description
The description element is used by the ejb-jar file producer to provide text describing the parent element. The description element should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the parent element.
Data type: String
Default value: unspecified
/linkedEJB
Data type: