Friday, July 06, 2007

Java RMI

RMI (Remote Method Invocation) is one of Java technology approaches to provide functionalities of a distributed objects platform. This distributed objects system is part of Java basic core since JGK 1.1.

Using RMI architecture, it is possible for an active object in a Java virtual machine to interact with objects in others Java virtual machines, no matter where these machines are located.
When developing a client-server application using Java RMI, it is essential defining the interface of services that are going to be offered by server object.
Services specified by RMI interface must be implemented using a Java class. In this implementation, you must indicate that this class objects can be accessed remotely.

Since you have implemented interface and service, it is now possible to create RMI client-server applications.

Execution of RMI client-server applications requires:


  • Execution of client application and of server application.

  • Execution of RMI registry service.

RMI also offers facilities to operate with available code in distributed pattern, dynamic activation and others distributed services.

1 comment:

blade server said...

As a person who works for Dell There are great advantage exisiting of RMI some of there handles threads for you, Handles Sockets for you, Nice GC of lost clients. ie Unreferenced, Marshalls objects for you