With the naming management functionality, you can switch the CORBA Naming Services connected by JNDI when you search distributed objects through JNDI. You can switch the CORBA Naming Services by passing the name with the prefix corbaname: to the argument of the lookup method for the instance of the InitialContext class.
The following figure shows the procedure of switching the CORBA Naming Services.
Figure 2-15 Procedure of switching the CORBA Naming Services
The description of the switching procedure of the naming service is as follows. In this procedure, a lookup specifying the prefix corbaname: is executed twice from the J2EE application. The connected CORBA Naming Service is switched according to the host name specified after the prefix.
The CORBA Naming Services are switched by using the server management commands to resolve the Enterprise Bean references. For details on the operations, see 9. Setting up the J2EE Application Properties in the uCosminexus Application Server Application Setup Guide.
Note that when the CORBA Naming Service is running on the local host, specify the computer name or the IP address instead of the character string "localhost" in the settings related to the naming service host name.
Customize the J2EE server properties to specify the host name settings for the naming services. For details on how to specify the settings, see 2.3.5 Execution environment settings.