Hitachi

uCosminexus Application Server System Design Guide


8.4.3 Using the pass by reference functionality of the remote interface

This method aims to increase the processing speed by using pass by reference for transferring large size data such as the objects used for argument and return value when local invocation optimization functionality is used.

Processing speed can be expected to increase under the following conditions:

Table 8‒18: Conditions under which the processing speed can be expected to increase by using pass by reference for remote interface

Item

Processing contents

Processing of business method

The data obtained through virtual argument is only passed by reference without being changed directly

Argument and return value of business method

In this process, classes like the array and collection transfer large data

Location of the Enterprise Bean to be invoked

In similar J2EE applications or similar J2EE servers

Transfer of data in remote interface uses call by value. A program that is created on the basis of call by value may not work properly. An example of a program that may not work properly is shown below:

Figure 8‒6: Example of a program that may not work properly

[Figure]

This functionality is not effective in the following cases:

This functionality can be set in the Enterprise bean or a J2EE server.