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:
|
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:
|
|
This functionality is not effective in the following cases:
-
In the case of primitive type (simple type) (since it is always call by value)
-
In case the size of the data to be transferred is small
This functionality can be set in the Enterprise bean or a J2EE server.