You can set up a timeout for the RMI-IIOP communications with an API.
The timeout indicated by C in Figure 2-14 and Figure 2-15 can be set up by using APIs. For specifying a timeout by using APIs, use the APIs of the com.hitachi.software.ejb.ejbclient package. For details on the functionality and syntax of APIs, see 4. APIs Used in EJB Client Applications in the uCosminexus Application Server API Reference Guide.
The timeout value for an RMI-IIOP communication is the value specified in the property when the first InitialContext is generated after starting up the client process. Even when you do not use a naming service, you must generate InitialContext for setting up a timeout in the RMI-IIOP communication.
The communication timeout for a naming service is the value that is specified in the property during an API invocation of JNDI, such as InitialContext creation and lookup.