Professional Documents
Culture Documents
The RMI (Remote Method Invocation) is an API that provides a mechanism to create distributed
application in java. The RMI allows an object to invoke methods on an object running in another JVM.
1) Create an interface.
An interface is similar to a pure virtual class in C++; it defines the methods (and the arguments
to the methods) that will be available in a class that implements it; however, it doesn't actually
implement any of the methods.
9) Create a permissions file. (More dangerous in the sense that it leaves your machine open to
certain net-based attacks during the lifetime of the implementation thread.) For simplicity's sake,
keep your permissions file in the same directory as your .class files.
Permit.policy
grant{
}
java -Djava.security.policy=”Permit.policy” Client