The RMISecurityManager ClassThe RMISecurityManager is a subclass of the java.lang.SecurityManager class. It is used to set the security policies that govern the behavior of stub and skeleton classes. If a security manager is not set, an application will not be able to export objects over the network. By default, JVM does not allow an application to load classes dynamically, unless the application has set up its own security manager. The security manager throws an AccessException to indicate that the caller does not have permission to perform the action requested by the method call. To use the RMISecurityManager in your application , add the following statement to your code: System.setSecurityManager(new RMISecurityManager()); Constructor
The RMIClassLoader ClassA class loader is necessary for loading classes. This includes loading classes, locally or remotely. The RMIClassLoader provides static methods for loading classes from a network location. It first attempts to locate classes locally. If the classes are not found locally, it loads them from a network location. Methods
RMI heavily depends on the Object serialization mechanism to transmit data from one JVM to another JVM. One of the central and unique features of RMI is its ability to download the code of an object(s) class if the class is not defined in the receiver(s) virtual machine. For dynamic class loading:
|
||
|
||
Copyright © 2001 www.universalteacher.com |
||