27/10/141 /26 N: L P TRÌNH M NG 2 GV: NGUY N XUÂN VINH
TR NG Đ I H C NÔNG LÂM TP.HCMƯỜ KHOA CÔNG NGH THÔNG TIN
Java
Remote Method Invocation
Presenter: Nguy n Xuân Vinh
Information Technology Faculty
Nong Lam University
27/10/142 /26 N: L P TRÌNH M NG 2 GV: NGUY N XUÂN VINH
TR NG Đ I H C NÔNG LÂM TP.HCMƯỜ KHOA CÔNG NGH THÔNG TIN
“The network is the computer”
Consider the following program organization:
SomeClass AnotherClass
method call
returned object
computer 1 computer 2
If the network is the computer, we ought to be able to put the two
classes on different computers
27/10/143 /26 N: L P TRÌNH M NG 2 GV: NGUY N XUÂN VINH
TR NG Đ I H C NÔNG LÂM TP.HCMƯỜ KHOA CÔNG NGH THÔNG TIN
Parameter marshalling
27/10/144 /26 N: L P TRÌNH M NG 2 GV: NGUY N XUÂN VINH
TR NG Đ I H C NÔNG LÂM TP.HCMƯỜ KHOA CÔNG NGH THÔNG TIN
Calling the remote getDescription method
27/10/145 /26 N: L P TRÌNH M NG 2 GV: NGUY N XUÂN VINH
TR NG Đ I H C NÔNG LÂM TP.HCMƯỜ KHOA CÔNG NGH THÔNG TIN
RMI and other technologies
CORBA (Common Object Request Broker Architecture) was used
for a long time
CORBA supports object transmission between virtually any
languages
Objects have to be described in IDL (Interface Definition
Language), which looks a lot like C++ data definitions
CORBA is complex and flaky
CORBA has fallen out of favor
Microsoft supported CORBA, then COM, now .NET
RMI is purely Java-specific
Java to Java communications only
As a result, RMI is much simpler than CORBA