Lecture Notes for Client-Server Interfaces

27 March 2004 - Java RMI


Outline


Objects and Distributed Computing


Java and Distributed Computing


Java Remote Method Invocation

class AdderClient

  void adder(int a, int b)

    try 
      AdderInterface adder = 
        (AdderInterface) Naming.lookup("Adder")
      System.out.println(
	a + "+" + b + "=" + adder.add(a, b))

    catch Exception e
      System.err.println(
        "Exception" + e.getMessage())
      e.printStackTrace()


Service Specification


Server Implementation


Proxy Generation


Registration and Discovery


Client Discovery


Dynamic Loading and Stubs


Dynamic Loading and Security


The Security Manager


Marshalling Arguments


Points to Remember


This page last modified on 16 April 2004.