Java Remote Method Invocation

Java RMI

Downloading classes

Generating stubs

RMI requirements on interfaces

Remote object implementation

Remote object server


Advertising and finding objects


Complete example code

Non-remote objects


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


Alternative mechanisms


Jan Newmarch <>
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.