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
Preconditions | Lookup name | |||
---|---|---|---|---|
Specification of the optional name for EJB | Value of the ejbserver.jndi.global.enabled parameter #1 | Value of the ejbserver.ctm.useGlobalJNDI parameter #2 | Can the Portable Global JNDI name be registered #3 | |
Yes | -- | -- | -- | Optional name for the EJB |
No | true (default) | true | Can be registered | Portable Global JNDI name |
Cannot be registered | Name beginning with HITACHI_EJB | |||
false (default) | -- | |||
false | -- | -- |