Chapter 7. Servers I—unicast servers
Introduction—Writing the server—Implementing remote interface methods—Threads, sockets, and ports—the
Unreferencedinterface—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
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 ...