Remote Objects Communication Within a Single JVM
Use
This function refers to communication between remote objects that reside in the same Java Virtual Machine. That is, their communication is conducted by the same broker object. In this case, the remote objects can communicate without need of stubs and skeletons – the client can call methods directly on the implementation of the remote class.
Restrictions
This situation is feasible and can be used to speed up communication only when those objects are located within a single classloader domain. If any of them uses external resources that are part of a different classloader domain, runtime errors will occur.
Therefore, we recommend that you always use local stubs and communicate through them in such cases.
Activities
You can determine how is the communication between remote objects in a single JVM conducted using the Instantiate Local Stubs property of the P4 Provider Service running on server processes. Use the Visual Administrator tool to do it:
-
Open the Properties tab of P4 Provider Service running on server process.
-
Set the Instantiate Local Stubs property to true , if you want to use local stubs for the remote objects communication, or set it to false , for direct communication.
-
To add the new value to the list of properties, choose Update .
-
To save your changes, choose
( Save Properties ).