Remote Method Invocation in Java: Bennie Lewis EEL 6897
Remote Method Invocation in Java: Bennie Lewis EEL 6897
Remote Method Invocation in Java: Bennie Lewis EEL 6897
Bennie Lewis
EEL 6897
AGENDA
• Introduction
• What is RMI
• Security
• Conclusion
• Questions
Introduction
RMI
Java’s RMI is an alternative to low level sockets. A remote method
invocation is a form of the RPC that is available on other systems.
Instead of creating objects on local machines you create some of
the objects on other machines an you communicate with those
objects as you would normally would with local objects
WHAT IS RMI
• RMI is a core package of the JDK 1.1 and above that can be used to
develop distributed application.
• The transport layer is the low-layer that ships marshal streams between
different address spaces. The transport layer is responsible for setting
up connections to remote address spaces, managing connections,
listening for incoming calls, maintaining a table of remote objects that
reside in the same address space, setting up a connections to this
dispatcher.
How RMI works
• import java.rmi.Naming;
• import java.rmi.RemoteException;
• import java.rmi.RMISecurityManager;
• import java.rmi.server.UnicastRemoteObject;
• import java.applet.Applet;
• import java.awt.Graphics;
• import java.rmi.Naming;
• import java.rmi.RemoteException;
• package RMI.hello;
• import java.rmi.Remote;
• import java.rmi.RemoteException;
• There are no security checks on the RMI registry itself; any caller Is
allowed to make request.
• RMI is a core package of the JDK 1.1 and above that can be used to
develop distributed application.
• The RMI system is built in three layers The stub/skeleton layer, The
remote reference layer, The transport layer
References
• http://java.sun.com/javase/technologies/core/basic/rmi/index.jsp
Questions