August 2002
Intermediate to advanced
688 pages
23h
English
<ejb-ref>
In a
J2EE-compliant
container, the <ejb-ref> element declares
EJB objects. The name (JNDI path), type (Entity or
Session), home and remote interface class names
must be specified with the <ejb-ref-name>,
<ejb-ref-type>,
<home>, and
<remote> elements:
<ejb-ref> <ejb-ref-name>ejb/Payroll</ejb-ref-name> <ejb-ref-type>Session</ejb-ref-type> <home>com.mycomp.PayrollHome</home> <remote>com.mycomp.Payroll</remote> </ejb-ref>
An optional <ejb-link> element can uniquely
identify a specific bean if more than one EJB has the same name. In
addition, an optional <description> element
can add a description of the EJB.
Read now
Unlock full access