uCosminexus Application Server, EJB Container Functionality Guide

[Contents][Glossary][Index][Back][Next]

2.11.8 Settings in the execution environment

Of the timeouts in an EJB container, the timeout for an RMI-IIOP communication can be set up in a J2EE server that is the client process or in the EJB client applications.

You can specify the timeout of a Stateful Session Bean, the EJB objects of an Entity Bean, or the timeout in awaiting instance acquisition in a J2EE application. Reference while you set up or change the property of the J2EE application that does not include cosminexus.xml.

Organization of this subsection
(1) Setting up a timeout for the RMI-IIOP communication (setting up a J2EE server and EJB client applications)
(2) Definition of the timeout of a Stateful Session Bean, timeout of EJB objects of an Entity Bean, or timeout in awaiting instance acquisition

(1) Setting up a timeout for the RMI-IIOP communication (setting up a J2EE server and EJB client applications)

You can set up a timeout for A or B in Figure 2-14 and Figure 2-15.

For setting the timeout as a property, the setup method will differ depending on the Enterprise Bean from which the method is invoked (forms of EJB clients). Specify the settings as properties of a J2EE server or the EJB client application of the caller (EJB client).

(a) When the EJB client is in the form of an Enterprise Bean, JSP, or servlet

Set up the timeout in a J2EE server in which the client-side Enterprise Bean, JSP, or servlet is running. Specify the settings of a J2EE server in the Easy Setup definition file.

Specify the following parameter in the <configuration> tag of the logical J2EE server (j2ee-server) of the Easy Setup definition file.

Parameter to be specified
ejbserver.rmi.request.timeout

Setting contents
Specify the timeout period for the communication between the client and the server in the RMI-IIOP communication.

For details on the Easy Setup definition file and parameters, see 4.6 Easy Setup definition file in the uCosminexus Application Server Definition Reference Guide.

(b) When the EJB client is in the form of an EJB client application

For the EJB client application, specify the timeout value as an enabled property during the execution of the EJB client application.

Specify the following key in usrconf.properties (user property file for Java applications):

Key to be specified
ejbserver.rmi.request.timeout key

Setting contents
Specify the timeout period for the communication between the client and the server in the RMI-IIOP communication.

For details on usrconf.properties and keys, see 14.3 usrconf.properties (User property file for Java applications) in the uCosminexus Application Server Definition Reference Guide.

(2) Definition of the timeout of a Stateful Session Bean, timeout of EJB objects of an Entity Bean, or timeout in awaiting instance acquisition

The definition of the timeout of a Stateful Session Bean, timeout of EJB objects of an Entity Bean, or the timeout in awaiting instance acquisition can also be set up in the execution environment. Specify the settings in the J2EE application imported into a J2EE server. Execute the setup only to specify or change the property of the J2EE application that does not include cosminexus.xml.

Set up the J2EE application in the execution environment using the server management commands and the property files. Use the following property files to define the reference mapping:

Table 2-30 Property files used to define the timeout of a Stateful Session Bean, timeout of the EJB objects of an Entity Bean, or the timeout in awaiting instance acquisition

Setting target Attribute files
Session Bean Session Bean attribute file
Entity Bean Entity Bean attribute file

The tags specified in the property files correspond to the DD or cosminexus.xml. For details on the cosminexus.xml settings, see 2.11.6 Defining in cosminexus.xml.