Return to Homegeneral info-bulletjavadashsybase-technical training-instructors
training - java courses - advanced java courses


RMI & Object Serialization

Java Remote Method Invocation (RMI) can be used to build distributed systems in which Java objects on remote servers can be accessed and manipulated. This module will cover the details of RMI and provide an overview of Object Serialization, one of the underlying mechanisms that support RMI.

 

Topics include:
Introduction to RMI & OSI
Overview of OSI
The ObjectOutput, ObjectInput, Serializable, and Externalizable Interfaces
Serialization details
Inheritance, transient, volatile
Overview of building distributed systems in Java
The RMI Object model
Similarities to and differences from the normal Java object model
The RMI API
The Remote interface.
Generating statements from connections class RemoteObject, RemoteServer, and UnicastRemoteObject
Remote objects and methods.
Overview of RMI Architecture
Stubs, skeletons, Remote Reference Layer, Transport layer
Defining RMI clients and servers
Using rmic to generate stubs and skeletons
Bootstrapping with the RMI naming service
Getting handles on remote objects
Calling methods on remote objects
Passing and returning values in remote method calls
Passing non-remote objects
Passing remote objects
Client callbacks
MI resource list

 

Lab Exercises
Your first RMI program
Writing a remote interface
Defining a remote object
Defining a server using UnicastRemoteObject
Writing a client
Compilation, rmic
Running the registry
Running the server
Running the client
Using remote objects as return parameters and method arguments
Using client callbacks
A ClientCallback interface
Registering a callback
Triggering a callback

 

|   return to top   |