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.

Introduction

In object-oriented ...

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.