Java Remote Method Invocation

Java RMI


Downloading classes


Generating stubs


RMI requirements on interfaces


Remote object implementation


Remote object server


Client


Advertising and finding objects


Security


Complete example code


Non-remote objects


Example

A FireStation may have a method

    FireEngine raiseAlarm(FireEvent evt)
A home may get a stub for a fire station, to raise alarms when a fire event occurs. In return, it gets a fire engine.


Under the hood - UnicastRemoteObject


Under the hood - stub object


JRMP


Alternative mechanisms


RMI-IIOP


Jan Newmarch <jan@newmarch.name>
Last modified: Tue Sep 19 15:22:51 EST 2006
Copyright © Jan Newmarch, Monash University, 2007
Creative Commons License This work is licensed under a Creative Commons License
The moral right of Jan Newmarch to be identified as the author of this page has been asserted.