The following figure shows the operations in a round-robin search when performed from a client program.
You assume that the EJB home object to be searched using the round-robin search is registered with the name "MyBean" in each of the CORBA Naming Services shown in the figure. The same name is set up using the user-specified name space functionality in the multiple EJB home objects to be searched.
Figure 2-11 Operations during the round-robin search
![[Figure]](figure/zu021100.gif)
The following is a description of the figure:
- The client application uses the group name of the logical naming services to be searched, as an argument, and generates the InitialContext instance for round robin.
- The client application specifies the name "My Bean" and requests a search to the generated InitialContext instance for round robin.
- The round-robin Search functionality uses the round-robin policy to determine the search destination of the CORBA Naming Services belonging to the group to be searched.
- If the search is successful, the result is returned to the client application.
Note that if the search fails, another CORBA Naming Service belonging to that group is searched.
- The client application accesses the searched EJB home objects.
- Note
- When InitialContext is issued for the first time, an attempt is made to connect to the provider URLs of all the groups. Therefore, if a non-connectable provider URL is mentioned, the processing might be delayed.