InfoCenter Home >
6: Administer applications >
6.6: Tools and resources quick reference >
6.6.43: Administering references >
6.6.43.0: Properties related to references >
6.6.43.0.1: Assembly properties for EJB references
6.6.43.0.1: Assembly properties for EJB references
An EJB reference is a logical name used to locate the home interface of an
enterprise bean used by the application. At deployment, the EJB
reference is bound to the enterprise bean's home in the target
operational environment. The container makes the application's EJB
references available in a JNDI naming context. It is recommended that
references to enterprise beans be organized in the ejb subcontext of the
application's environment (in java:comp/env/ejb).
- Name (Required, String)
- Specifies the JNDI name of the enterprise bean's home, relative to
the java:comp/env context. For example, if ejb/EmplRecord is
specified, the referencing code looks up the enterprise bean's home at
java:comp/env/ejb/EmplRecord. This JNDI name is a JNDI name alias
used by the code (the actual JNDI name is specified on the Binding
tab).
- Link
- Used to link an EJB reference to an enterprise bean in the current module
(the same module as the one making the reference) or in another module within
the same encompassing J2EE application. The value of this property is
the name of the target enterprise bean. (The target enterprise bean can
be in any EJB module in the same J2EE application as the referencing
module.) To avoid having to rename enterprise beans to have unique
names within an entire J2EE application, specify the path name of the EJB JAR
file containing the referenced enterprise bean and append the target
bean's name, separated by a # symbol, for example,
...products/product.jar#ProductEJB. The
path name is relative to the referencing module's JAR file. If a
link is not specified, the reference must be resolved to a JNDI name during
installation.
- Home (Required, String)
- Specifies the fully qualified name of the enterprise bean's home
interface. An example is
com.ibm.ejbs.EmplRecordHome.
- Remote (Required, String)
- Specifies the fully qualified name of the enterprise bean's remote
interface. An example is
com.ibm.ejbs.EmplRecord.
- Type (Required, String)
- Specifies the expected type of the referenced enterprise bean. The
value must be either Entity or Session.
- Description
- Contains text describing the EJB reference.
- JNDI Name
- Binding information is used by the run-time environment to resolve the
location of a resource. For EJB references, the JNDI name must match
the JNDI name of the enterprise bean as specified on the Binding tab in the
EJB module containing the bean.
|
|