Presentation is loading. Please wait.

Presentation is loading. Please wait.

INF 123 SW ARCH, DIST SYS & INTEROP LECTURE 9 Prof. Crista Lopes.

Similar presentations


Presentation on theme: "INF 123 SW ARCH, DIST SYS & INTEROP LECTURE 9 Prof. Crista Lopes."— Presentation transcript:

1 INF 123 SW ARCH, DIST SYS & INTEROP LECTURE 9 Prof. Crista Lopes

2 Objectives  Understanding of Distributed Objects architectures  Acquaintance with a well-known RMI framework  Java RMI

3 Web Services isa Distributed System  “Collection of interacting components hosted on different computers that are connected through a computer network” Component 1 Component n Hardware Network OS Host 3 Component 1 Component n Hardware Network OS Host 2 Component 1 Component n Hardware Network OS Host 1 … Network

4 Remote Procedure Calls (RPC) r = foo(a, b) define foo(a, b) … end caller callee program host Local Procedure Calls r = foo(a, b) define foo(a, b) … end caller callee program host 1 host 2 program Remote Procedure Calls

5 Remote Procedure Calls (RPC) r = foo(a, b) define foo(a, b) … end caller callee program host Local Procedure Calls r = foo(a, b) define foo(a, b) … end caller callee program host 1 host 2 program Remote Procedure Calls Stub Skeleton

6 RPC Procedure Interface Definition (in IDL) Procedure Definition Program (in PL) Procedure Call Program (in PL) Stub (in PL) Skeleton (in PL) generates Network OS

7 RPC Stubs  Marshal arguments (i.e. “serialize”)  Issue request to remote server, wait for response  Unmarshal return value (i.e. “deserialize”)

8 RPC Skeletons  Unmarshal arguments  Call local procedure  Marshal return value  Send back response to client

9 Distributed Objects model Obj1 Host A Obj2 Host A Obj4 Host A Obj5 Host A Obj3 Obj6

10 Distributed Objects model Obj1 Obj2 Obj4 Obj5 Obj3 Obj6 “Transparent distribution”

11 Distributed Objects – Properties  Very tightly coupled with PL  Compiler generates stubs and skeletons  Distribution seen only in terms of peripheral components:  Security  Registry  Additional program arguments  Location (host) doesn’t matter [much]  Remote object references do

12 Rest of this lecture  Java RMI tutorial at http://java.sun.com/docs/books/tutorial/rmi/overview.html http://java.sun.com/docs/books/tutorial/rmi/overview.html


Download ppt "INF 123 SW ARCH, DIST SYS & INTEROP LECTURE 9 Prof. Crista Lopes."

Similar presentations


Ads by Google