Name
<ejb-ref>
Synopsis
The <ejb-ref>
element is used to
declare a remote EJB reference used by the
application.
Syntax
<ejb-ref> [<description [xml:lang="lang
"]>description
</description>]* <ejb-ref-name>ejbRefName
</ejb-ref-name> <ejb-ref-type>Entity|Session</ejb-ref-type> <home>homeInterfaceName
</home> <remote>remoteInterfaceName
</remote> [<ejb-link>linkedEJBName
</ejb-link>] </ejb-ref>
In a J2EE-compliant container, the <ejb-ref>
element is used to declare 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 be used
to uniquely identify a specific bean if more than one EJB has the
same name. In addition, an optional
<description>
element can be used to add a
description of the EJB.
Get JavaServer Faces now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.