chapter05 - Chapter 5: Distributed objects and remote...

Info iconThis preview shows pages 1–9. Sign up to view the full content.

View Full Document Right Arrow Icon
Introduction Communication between distributed objects Remote procedure call Events and notifications Java RMI case study Summary Chapter 5: Distributed objects and remote invocation
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Heterogeneity Applies to all of the following: networks Internet protocols mask the differences between networks computer hardware e.g. data types such as integers can be represented differently operating systems e.g. the API to IP differs from one OS to another programming languages data structures (arrays, records) can be represented differently implementations by different developers they need agreed standards so as to be able to interwork Middleware provides a programming abstraction and masks the heterogeneity of networks etc.
Background image of page 2
Middleware programming models Distributed objects and remote method invocation is the model explained in Chapter 5 illustrated by Java RMI CORBA is in Chapter 17. it provides remote object invocation between a client program written in one language and a server program written in another language our book uses Java CORBA to illustrate the use of CORBA another language commonly used in CORBA is C++ Other programming models remote event notification remote SQL access distributed transaction processing
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Middleware layer Software that provides a programming model above the basic building blocks of processes and message passing is called middleware . Characteristics of Middleware Location transparency Communication protocols Computer hardware Operating systems Programming languages Middleware
Background image of page 4
Remote procedure call (RPC) Remote method invocation (RMI) Event-based programming model Familiar programming models
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Remote procedure call (RPC) call procedure in separate process Remote method invocation (RMI) extension of local method invocation in OO model invoke the methods of an object of another process Event-based model Register interested events of other objects Receive notification of the events at other objects Distributed programming model
Background image of page 6
Interface The interface of a module specifies accessible procedures and variables that can be accessed from other modules Inner alteration won’t affect the user of the interface Interface in distributed system Can’t access variables directly Input argument and output argument Pointers can’t be passed as arguments or returned results Interfaces
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
RPC’s Service interface specification of the procedures of the server, defining the types of the input and output arguments of each procedure RMI’s Remote interface Specification of the methods of an object that are available for objects in other processes, defining the types of them. may pass objects or remote object references as arguments or
Background image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 06/12/2011 for the course CS 551 taught by Professor Staff during the Summer '08 term at Colorado State.

Page1 / 47

chapter05 - Chapter 5: Distributed objects and remote...

This preview shows document pages 1 - 9. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online