uCosminexus Application Server, Expansion Guide
CTM-based request scheduling uses the global CORBA Naming Service as the naming service.
The global CORBA Naming Service is a naming service that manages information about the business-processing programs (stateless session beans) contained in the same CTM domain so that the information can be shared. The global CORBA Naming Service allows the hosts in the CTM domain to share the information about the EJB home object references registered on those hosts. The global CORBA Naming Service can be used to find J2EE servers on which a requested business-processing program is registered if that program is not registered on the J2EE server of the CTM daemon that received the request. With the global CORBA Naming Service, requests can be distributed to appropriate CTM daemons in this way.
A global CORBA Naming Service is deployed for each CTM daemon. CTM daemons exchange information with each other, including information about the business-processing programs on other hosts. Each CTM daemon registers this information in the global CORBA Naming Service on the local host. The information of the global CORBA Naming Services is thus shared within a CTM domain. Therefore, to obtain information about J2EE servers on other hosts, deploy a CTM daemon that runs only a global CORBA Naming Service (without running the J2EE server) on the integrated naming scheduler server.
The characteristics of a global CORBA Naming Service are as follows:
The below figure is an example of processing in a system that uses global CORBA Naming Services.
In this example, the CTM daemons on hosts A and B are registered in the same CTM domain. Business-processing programs A and B are registered in the J2EE server on host A. Business-processing program C is registered in the J2EE server on host B. Note that a failure has occurred on host A. Also note that the EJB client application was started by specifying a system property (java.naming.factory.initial key) that is set to perform a round-robin search.
Figure 3-13 Example of processing in a system that uses global CORBA Naming Services
The following describes the processing in the above figure:
If no failure occurs on application server A, the global CORBA Naming Service on host A returns a reference in response to lookup in step 1. When the EJB client application uses the reference to request create, the CTM daemons on hosts A and B determine which CTM daemon manages the request. As a result, an EJB home object reference to business-processing program C on host B is returned to the EJB client application.
All Rights Reserved. Copyright (C) 2013, 2015, Hitachi, Ltd.