Name

<ejb-ref>

Synopsis

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.

Get JavaServer Pages, Second Edition 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.