2.3.1 Types of names used for lookup

With Application Server, you can use the following four types of names for lookup:

The following table describes the lookup method that can be used and the recommended lookup method for each form of EJB client.

Table 2-4 Types of lookup methods

Form of EJB ClientLookup methods
Looking up with the Portable Global JNDI namesLooking up with names using java:comp/envLooking up with names beginning with HITACHI_EJBLooking up with the optional names assigned by the user-specified name space functionality
EJB client applicationsRNYY
JSPs, servletsYRYY
EJBsYRYY
Legend:
R: Usage is recommended
Y: Available
N: Not available

The following points describe the lookup names and the methods of lookup using those names:

Organization of this subsection
(1) Looking up with the Portable Global JNDI names
(2) Looking up with names using java:comp/env
(3) Looking up with names beginning with HITACHI_EJB
(4) Looking up with the optional names assigned by the user-specified Name Space functionality

(1) Looking up with the Portable Global JNDI names

The following points describe how to define the names, the lookup range, and features for looking up with the Portable Global JNDI names:

For details on looking up with the Portable Global JNDI names, see 2.4 Looking up with the Portable Global JNDI names. Also, for details on the standard application name and standard module name, see 2.4.2 Automatically bound objects.

(2) Looking up with names using java:comp/env

The following points describe how to define the names, the lookup range, and features for looking up names using java:comp/env:

The specifications for looking up names using java:comp/env follow the Java EE provisions.

(3) Looking up with names beginning with HITACHI_EJB

The following points describe how to define the names, the lookup range, and features for looking up names beginning with HITACHI_EJB:

For details on looking up with names beginning with HITACHI_EJB, see 2.5 Looking up with names beginning with HITACHI_EJB.

(4) Looking up with the optional names assigned by the user-specified Name Space functionality

The following points describe how to define the names, the lookup range, and features for looking up with the optional names assigned by the user-specified Name Space functionality:

For details on assigning optional names for the Enterprise Beans or J2EE resources, see 2.6 Assigning an optional name to the Enterprise Beans or J2EE resources (User-specified name space functionality).

Reference note
The Java EE specifications recommend looking up with the names using java:comp/env.