Instance variables of remote objects are accessible from anywhere in the distributed environment. Remote classes along with their static variables and static methods are represented as unique entities in the environment. Local classes Existing regular Java classes can be reused in distributed JavaParty programs or can be written and compiled with the JavaParty compiler. Local classes are all classed that are not marked with the remote modifier.
Local objects are always private to the remote object they are created in.
If they are passed to methods of other remote objects or stored into instance variables of other remote objects, they are always copied. Local objects can be passed as arguments to remote method invocations and can be returned as result. Like in RMI , local objects are always passed by copy, no matter whether the target remote object resides on the same virtual machine or not. A local class is loaded and initialized separately in each virtual machine that participates in the JavaParty environment. Accesses to static methods and static variables of local classes always affect the class loaded on the current virtual machine.