<s>
In	O
computing	O
,	O
the	O
Java	B-Language
Remote	I-Language
Method	I-Language
Invocation	I-Language
(	O
Java	B-Language
RMI	I-Language
)	O
is	O
a	O
Java	B-Language
API	B-Application
that	O
performs	O
remote	B-Operating_System
method	I-Operating_System
invocation	I-Operating_System
,	O
the	O
object-oriented	O
equivalent	O
of	O
remote	B-Operating_System
procedure	I-Operating_System
calls	I-Operating_System
(	O
RPC	O
)	O
,	O
with	O
support	O
for	O
direct	O
transfer	O
of	O
serialized	O
Java	B-Language
classes	O
and	O
distributed	B-General_Concept
garbage-collection	I-General_Concept
.	O
</s>
<s>
The	O
original	O
implementation	O
depends	O
on	O
Java	B-Language
Virtual	I-Language
Machine	I-Language
(	O
JVM	B-Language
)	O
class-representation	O
mechanisms	O
and	O
it	O
thus	O
only	O
supports	O
making	O
calls	O
from	O
one	O
JVM	B-Language
to	O
another	O
.	O
</s>
<s>
The	O
protocol	O
underlying	O
this	O
Java-only	O
implementation	O
is	O
known	O
as	O
Java	B-Language
Remote	O
Method	O
Protocol	O
(	O
JRMP	O
)	O
.	O
</s>
<s>
In	O
order	O
to	O
support	O
code	O
running	O
in	O
a	O
non-JVM	O
context	O
,	O
programmers	O
later	O
developed	O
a	O
CORBA	B-Architecture
version	O
.	O
</s>
<s>
Usage	O
of	O
the	O
term	O
RMI	O
may	O
denote	O
solely	O
the	O
programming	B-Application
interface	I-Application
or	O
may	O
signify	O
both	O
the	O
API	B-Application
and	O
JRMP	O
,	O
IIOP	B-Operating_System
,	O
or	O
another	O
implementation	O
,	O
whereas	O
the	O
term	O
RMI-IIOP	B-Language
(	O
read	O
:	O
RMI	B-Language
over	I-Language
IIOP	I-Language
)	O
specifically	O
denotes	O
the	O
RMI	O
interface	O
delegating	O
most	O
of	O
the	O
functionality	O
to	O
the	O
supporting	O
CORBA	B-Architecture
implementation	O
.	O
</s>
<s>
The	O
basic	O
idea	O
of	O
Java	B-Language
RMI	I-Language
,	O
the	O
distributed	B-General_Concept
garbage-collection	I-General_Concept
(	O
DGC	O
)	O
protocol	O
,	O
and	O
much	O
of	O
the	O
architecture	O
underlying	O
the	O
original	O
Sun	O
implementation	O
,	O
come	O
from	O
the	O
"	O
network	O
objects	O
"	O
feature	O
of	O
Modula-3	B-Language
.	O
</s>
<s>
The	O
programmers	O
of	O
the	O
original	O
RMI	O
API	B-Application
generalized	O
the	O
code	O
somewhat	O
to	O
support	O
different	O
implementations	O
,	O
such	O
as	O
a	O
HTTP	B-Protocol
transport	O
.	O
</s>
<s>
Additionally	O
,	O
the	O
ability	O
to	O
pass	O
arguments	O
"	O
by	O
value	O
"	O
was	O
added	O
to	O
CORBA	B-Architecture
in	O
order	O
to	O
be	O
compatible	O
with	O
the	O
RMI	O
interface	O
.	O
</s>
<s>
Still	O
,	O
the	O
RMI-IIOP	B-Language
and	O
JRMP	O
implementations	O
do	O
not	O
have	O
fully	O
identical	O
interfaces	O
.	O
</s>
<s>
Note	O
that	O
with	O
Java	B-Language
versions	O
before	O
Java	B-Language
5.0	O
developers	O
had	O
to	O
compile	O
RMI	O
stubs	O
in	O
a	O
separate	O
compilation	O
step	O
using	O
rmic	O
.	O
</s>
<s>
Version	O
5.0	O
of	O
Java	B-Language
and	O
beyond	O
no	O
longer	O
require	O
this	O
step	O
.	O
</s>
<s>
Jini	B-Language
offers	O
a	O
more	O
advanced	O
version	O
of	O
RMI	O
in	O
Java	B-Language
.	O
</s>
<s>
If	O
the	O
server	O
object	O
implemented	O
java.io.Serializable	O
instead	O
of	O
java.rmi.Remote	O
,	O
it	O
would	O
be	O
serialized	O
and	O
passed	O
to	O
the	O
client	O
as	O
a	O
value	O
.	O
</s>
<s>
Note	O
:	O
we	O
make	O
a	O
stub	O
file	O
from	O
the	O
'	O
*	O
.class	O
'	O
file	O
with	O
the	O
implementation	O
of	O
the	O
remote	O
interface	O
,	O
not	O
from	O
the	O
'	O
*	O
.java	O
'	O
file	O
.	O
</s>
