The naming management manages the name and storage location of an object (EJB home objects, business interface references, and J2EE resources corresponding to the Enterprise Beans). By using the naming management functionality, the EJB client is able to use the necessary objects from the names of the Enterprise Beans or resources to be invoked, without knowing their storage locations.
Also, when you use a resources adapter compliant with the Connector 1.5 specifications, the objects to be managed are also managed by the naming management. The objects to be managed are the objects used for sending and simultaneously receiving messages from within the J2EE application. For details on the objects to be managed, see 3.16.5 Looking up Administered objects.
In the JNDI of the naming management functionality, the objects other than the CORBA object references (RMI-IIOP remote objects and JDBC data source objects) are handled as follows:
The naming management functionality provided with Application Server includes the functionality provided in J2EE with Application Server-specific enhancements and the functionality that is unique to Application Server. To determine whether the functionality is unique to Application Server, see 1. Application Server Functionality.
The following table describes the relation between the naming management functionality provided by Application Server and the target objects.
Table 2-2 Relation between the naming management functionality provided by Application Server and the target objects
Functionality | Enterprise Bean | J2EE resource | |
---|---|---|---|
EJB home object | Business interface | ||
Binding and looking up objects in the JNDI name space | Y | Y | Y#1 |
Looking up with the Portable Global JNDI names | Y | Y | Y |
Looking up with names beginning with HITACHI_EJB | Y | Y | N |
Assigning an optional name to the Enterprise Beans or J2EE resources (user-specified name space functionality) | Y | Y | Y |
Searching the CORBA Naming Service by using the round-robin policy | Y | Y | N |
Caching objects with the naming management functionality | Y | N#2 | N |
Switching the CORBA Naming Service | Y | N | N |