2.4.5 Looking up with the Portable Global JNDI names when the CTM is used

If the system configuration uses the CTM, you can acquire the EJB remote home object by looking up the CORBA Naming Service that is connected to the CTM daemon from the EJB client application. When you look up the EJB, you can use the names beginning with HITACHI_EJB, the Portable Global JNDI name, and the optional name assigned by using the user-specified name space functionality.

During EJB lookup when the CTM is used, the optional name is used if the optional name is specified for the EJB. If the optional name is not specified, the default lookup name is used. The default lookup name is switched using the ejbserver.ctm.useGlobalJNDI parameter in the <configuration> tag of the logical J2EE server (j2ee-server) in the Easy Setup definition file.

The following table describes the names used for EJB lookup when the CTM is used.

Table 2-15 Names used for EJB lookup when the CTM is used

PreconditionsLookup name
Specification of the optional name for EJBValue of the ejbserver.jndi.global.enabled parameter #1Value of the ejbserver.ctm.useGlobalJNDI parameter #2Can the Portable Global JNDI name be registered #3
Yes------Optional name for the EJB
Notrue (default)trueCan be registeredPortable Global JNDI name
Cannot be registeredName beginning with HITACHI_EJB
false (default)--
false----
Legend:
--: Not applicable
#1
Indicates the value specified in the ejbserver.jndi.global.enabled parameter of the Easy Setup definition file. If the value is true, the Portable Global JNDI name is registered when the application starts. If the value is false, the Portable Global JNDI name is not registered.
#2
Indicates the value specified in the ejbserver.ctm.useGlobalJNDI parameter of the Easy Setup definition file. If the value is true, the Portable Global JNDI name is used for EJB lookup in a system configuration where the CTM is used. If the value is false, a name beginning with HITACHI_EJB is used.
#3
Indicates whether the EJB can be registered with the Portable Global JNDI name. If the standard application name or standard module name is duplicated, or if the string cannot be registered, the Portable Global JNDI name cannot be registered.