Chapter 7

Performance

 

Universal TeacherRMI provides a simple interface for writing network applications. Calling a remote method is almost the same as calling a local method. But an application that uses remote objects is very different from an application that is local. Some of the main differences are:

Increased latency
Network failures
Remote machine problems

A remote method call will never be as fast as a local method call because of marshalling and unmarshalling of parameters. This chapter shows an example that calculates the time taken by a local method call and a remote method call.

The source code needed for this example is stored in the examples\Performance directory. The "Performance" directory contains the following files:

  • TimecalInterface.java
  • TimecalServerImpl.java
  • TimecalClient.java
  • Compile.bat
  • Rmicompile.bat
  • RunServer.bat
  • RunClient.bat

 

Note

Test this application on a network.

 

 

 

RMI BOOK MAIN PAGE                Top

  
Copyright © 2001 www.universalteacher.com