Chapter 7. Servers I—unicast servers

  • Introduction—Writing the server—Implementing remote interface methods—Threads, sockets, and ports—the Unreferenced interface—Building the server—Foundation classes—Serialization—Alternative server classes—Exercises

In this chapter

The simplest form of RMI server is the “unicast” server. This chapter describes how to write and build such servers. Along the way, it provides general information about implementing remote interfaces, sharing sockets and ports, and using the Unreferenced interface. Finally, we discuss the classes RemoteObject and RemoteServer—foundation classes applicable to all RMI servers—in §7.8. For more advanced server types, see Chapter 10, Chapter 14, and Chapter 17.


In object-oriented ...

Get java.rmi: The Remote Method Invocation Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.