0% found this document useful (0 votes)
1K views

Advantages of RMI

RMI allows for easy distribution of Java objects and behavior across a network. It provides advantages such as object-oriented passing of objects as arguments and return values, use of design patterns in distributed systems, built-in security mechanisms, simplicity of writing both clients and servers, ability to connect to existing systems, write once run anywhere portability, distributed garbage collection, and parallel computing abilities. RMI is part of the Java platform starting with JDK 1.1 and allows all Java systems to communicate directly without protocol translation overhead.

Uploaded by

RASHMI DABRE
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views

Advantages of RMI

RMI allows for easy distribution of Java objects and behavior across a network. It provides advantages such as object-oriented passing of objects as arguments and return values, use of design patterns in distributed systems, built-in security mechanisms, simplicity of writing both clients and servers, ability to connect to existing systems, write once run anywhere portability, distributed garbage collection, and parallel computing abilities. RMI is part of the Java platform starting with JDK 1.1 and allows all Java systems to communicate directly without protocol translation overhead.

Uploaded by

RASHMI DABRE
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Advantages

The primary advantages of RMI are:

 Object Oriented: RMI can pass full objects as arguments and return
values, not just predefined data types.

 Mobile Behavior: RMI can move behavior (class implementations)


from client to server and server to client

 Design Patterns: Passing objects lets you use the full power of object
oriented technology in distributed computing, such as two- and three-tier
systems. When you can pass behavior, you can use object oriented design
patterns in your solutions.

 Safe and Secure: RMI uses built-in Java security mechanisms that
allow your system to be safe when users downloading implementations.
RMI uses the security manager defined to protect systems from hostile
applets to protect your systems and network from potentially hostile
downloaded code. In severe cases, a server can refuse to download any
implementations at all.

 Easy to Write/Easy to Use: RMI makes it simple to write remote


Java servers and Java clients that access those servers. This simplicity
makes it easy to write servers for full-scale distributed object systems
quickly, and to rapidly bring up prototypes and early versions of software
for testing and evaluation. And because RMI programs are easy to write
they are also easy to maintain.

 Connects to Existing/Legacy Systems: RMI interacts with existing


systems through Java's native method interface JNI. Using RMI and JNI you
can write your client in Java and use your existing server implementation.
 Write Once, Run Anywhere: RMI is part of Java's "Write Once, Run
Anywhere" approach. Any RMI based system is 100% portable to any Java
Virtual Machine *, as is an RMI/JDBC system

 Distributed Garbage Collection: RMI uses its distributed garbage


collection feature to collect remote server objects that are no longer
referenced by any clients in the network.

 Parallel Computing: RMI is multi-threaded, allowing your servers to


exploit Java threads for better concurrent processing of client requests.

 The Java Distributed Computing Solution: RMI is part of the core


Java platform starting with JDK?? 1.1, so it exists on every 1.1 Java Virtual
Machine. All RMI systems talk the same public protocol, so all Java systems
can talk to each other directly, without any protocol translation overhead.

You might also like